* @return Map which will be passed into velocity template
*/
private Map<String, Object> getDefaultModel(HttpServletRequest request) {
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));