Suggestion: Move this block to a memoized method on RestMethodInfo, so it's cached.