this.handler = handler;
this.handlingMethod = handlingMethod;
this.validateMethod = validateMethod;
final Class<?> handlerClass = handler.getHandlerClass();
final ClassTypePair ctPair = ReflectionHelper.resolveGenericType(
handlerClass,
handlingMethod.getDeclaringClass(),
handlingMethod.getReturnType(),
handlingMethod.getGenericReturnType());
this.rawResponseType = ctPair.rawClass();
this.responseType = ctPair.type();
this.parameters = Collections.unmodifiableList(Parameter.create(
handlerClass, handlingMethod.getDeclaringClass(), handlingMethod, encodedParameters));
}