Map<String, Object> model = new HashMap<>();
model.put("request", request);
model.put("dateTool", new JodaDateTimeTool(request));
model.put("esc", new EscapeTool());
JCUser currentUser = ReadOnlySecurityService.getInstance().getCurrentUser();
PermissionTool tool = new PermissionTool(applicationContext);
model.put("currentUser", currentUser);
model.put("messages", getLocalizedMessagesBundle(currentUser));
model.put("permissionTool", tool);
return model;
}