public void service(final HttpServletRequest req, final HttpServletResponse res) throws ServletException, IOException {
if (listener == null) {
throw new ServletException("RESTServiceContainer has not been set");
}
final HttpRequest httpRequest = new ServletRequestAdapter(req, res, servletConfig.getServletContext());
final HttpResponse httpResponse = new ServletResponseAdapter(res);
try {
listener.onMessage(httpRequest, httpResponse);
} catch (final IOException e) {