if (shortcutIcon != null) {
pageNode.addForwardLink("icon", shortcutIcon);
}
TemplateContext templateContext = templateContextFactory.createTemplateContext();
templateContext.mergeContext(template.getInitialContext());
try {
long start = System.nanoTime();
processTemplate(request, templateContext);
long finish = System.nanoTime();
logger.log(Level.FINEST, String.format("Template was rendered in %.2fms.", ((finish - start) / 1000) / 1000.0));