final RestRequestHandler handler = getHandler(req.getURI(), _restHandlers,
DEFAULT_REST_HANDLER);
try
{
handler.handleRequest(req, requestContext, new TransportCallbackAdapter<RestResponse>(callback));
}
catch (Exception e)
{
final Exception ex = RestException.forError(RestStatus.INTERNAL_SERVER_ERROR, e);
callback.onResponse(TransportResponseImpl.<RestResponse>error(ex));