HttpServletRequest request = HttpContextHelper.getRequest(inputParameters);
RestResponse restResponse = this.methodDelegator.delegate(request, controller);
// forward the response
if (restResponse instanceof Status) {
Status status = (Status) restResponse;
StatusCodeCollector.setStatusCode(status.getStatus());
} else if (restResponse instanceof Page) {
Page page = (Page) restResponse;
ControllerContextHelper.storeContext(page.getData(), inputParameters);