RequestCycle.get().replaceAllRequestHandlers(
new ErrorCodeResponseHandler(HttpServletResponse.SC_NOT_FOUND, msg));
}
else
{
RequestCycle.get().replaceAllRequestHandlers(new AbortRequestHandler());
}
return;
}
new ResourceStreamResource(resourceStream).respond(attributes);