public ResponseContext process(HttpServletRequest request, String httpMethod) {
log.trace("service processing started");
RequestConfigurationContext requestConfigurationContext = new RequestConfigurationContext(httpMethod, request);
MessageContext messageContext = new MessageContext();
messageContext.setRequestContext(new RequestContext());
messageContext.setResponseContext(new ResponseContext());
messageContext.setRequestConfigurationContext(requestConfigurationContext);
RequestHandlerChain requestHandlerChain = new RequestHandlerChain();
ResponseHandlerChain responseHandlerChain = new ResponseHandlerChain();
try {
requestHandlerChain.doChain(messageContext);
responseHandlerChain.doChain(messageContext);
} catch (CuubezException e) {
ResponseCodeTransformUtil.transform(messageContext, e);
}
return messageContext.getResponseContext();
}