return context;
}
public void execute(HttpServletRequest request, HttpServletResponse response) throws Exception {
// log an exception for the stack trace
SourcePageNotFoundException exception = new SourcePageNotFoundException(getContext());
log.error(exception);
// start the HTML error report
response.setContentType("text/html");
PrintWriter writer = response.getWriter();
writer.println("<div style=\"font-family: Arial, sans-serif; font-size: 10pt;\">");
writer.println("<h1>Stripes validation error report</h1><p>");
writer.println(HtmlUtil.encode(exception.getMessage()));
writer.println("</p><h2>Validation errors</h2><p>");
sendErrors(request, response);
writer.println("</p></div>");
}