protected Result badRequest(String template, Parameters params) {
return badRequest(render(template, params));
}
protected Content render(String template, Parameters params) {
Content content;
try {
content = call("views.html." + template, "render", params);
} catch (ClassNotFoundException | MethodNotFoundException e) {
if (log.isDebugEnabled())
log.debug("template not found : '" + template + "'");