private XPathNavigator GetMethodNode(HttpActionDescriptor actionDescriptor) {
var reflectedActionDescriptor = actionDescriptor as ReflectedHttpActionDescriptor;
if (reflectedActionDescriptor != null)
{
var selectExpression = string.Format(CultureInfo.InvariantCulture, MethodExpression,
GetMemberName(reflectedActionDescriptor.MethodInfo));
return _documentNavigator.SelectSingleNode(selectExpression);
}
return null;
}