Logger.getLogger(Benchmarking.class.getName()).log(Level.SEVERE, null, ex);
}
}
public void renderCambridge(int loop, String expressionLanguage) {
DirectoryTemplateLoader templateLoader = new DirectoryTemplateLoader(
new File("src/main/cambridgetemplates/" + expressionLanguage), "utf-8", -1);
TemplateFactory tf = templateLoader.newTemplateFactory("skeleton.html", Expressions.cambridgeExpressionLanguage);
for (int i = 0; i < loop; i++) {
Template template = tf.createTemplate();
DataModel.User loggedInUser = model.getLoggedInUser();
template.setProperty("title", "Entries");