context.endRequest();
UserManager.endRequest(context.getSession());
}
private void prepareErrorDetails(final Throwable exception, final RequestContext requestContext, final String errorRef, final String servletPath) {
final DebugString debugText = new DebugString();
final DebugHtmlString debugHtml = new DebugHtmlString();
final DebugBuilder debug = new DebugTee(debugText, debugHtml);
try {
debug.startSection("Exception");