// get the prepared controller
Object controller = this.getController(controllerName, inputParameters, configuration);
// invoke the appropriate method
HttpServletRequest request = HttpContextHelper.getRequest(inputParameters);
RestResponse restResponse = this.methodDelegator.delegate(request, controller);
if (controller instanceof ConditionalGet) {
storeCacheKey(((ConditionalGet) controller).constructCacheKey());
}
// execute the rest response
RestResponseMetaData restResponseMetaData = restResponse.setup(inputParameters);
// set the status-code with the result produced by the restResponse execution
ResponseHeaderCollector.setStatusCode(restResponseMetaData.getStatusCode());
// set the content type with the result produced by the restResponse execution