* @throws Throwable
* thrown when the request cannot be processed
*/
private boolean process(final HttpServletRequest req,
final HttpServletResponse res) throws Throwable {
final ControllerResource ctrlRes = WebApplication.DFLT.resolve(req);
if (ctrlRes == null) {
return false;
}
final TemplateEngine templateEngine = WebApplication.DFLT
.getTemplateEngine();
res.setContentType("text/html;charset=UTF-8");
res.setHeader("Pragma", "no-cache");
res.setHeader("Cache-Control", "no-cache");
res.setDateHeader("Expires", 0);
ctrlRes.getController().process(req, res, this.servletContext,
templateEngine);
return true;
}