{
RequestCycle cycle = RequestCycle.get();
if (cycle != null)
{
IRequestHandler handler = new ErrorCodeRequestHandler(HttpServletResponse.SC_FORBIDDEN, createErrorMessage(resource, parameters));
cycle.replaceAllRequestHandlers(handler);
}
}
protected String createErrorMessage(IResource resource, PageParameters parameters)
{