}
public Object resolveArgument(MethodParameter methodParameter,
NativeWebRequest webRequest) throws Exception {
Class<?> paramType = methodParameter.getParameterType();
WidgetConfig widgetConfig = (WidgetConfig) webRequest
.getAttribute(WidgetConfig.KEY, WebRequest.SCOPE_REQUEST);
Object value = null;
if(paramType.isAssignableFrom(Page.class)) {
value = getPage(widgetConfig, webRequest.getNativeRequest(HttpServletRequest.class));
return returnValue(webRequest, value, Page.class);