@Override
protected void service(final HttpServletRequest req,
final HttpServletResponse resp) throws ServletException,
IOException {
final HttpServerAdapter adapter = getTransport()
.httpServerAdapter();
final TomcatHttpServerRestRequest restRequest = new TomcatHttpServerRestRequest(
req);
final TomcatHttpServerRestChannel restChannel = new TomcatHttpServerRestChannel(
restRequest, resp, transport.getSecurityService());
try {
adapter.dispatchRequest(restRequest, restChannel);
restChannel.await();
} catch (final InterruptedException e) {
throw new ServletException("failed to dispatch request", e);
} catch (final Exception e) {