/**
* Return the settings for the current user; returns null if there is no current user
* @return
*/
protected synchronized Map<String, String> getUserSettings() {
UserSession session = (UserSession) getCtx().getReq().getSession(true).getAttribute("userSession");
if (session == null) return null;
Map<UserSession, Map<String, String>> settingsMap = (Map<UserSession, Map<String, String>>) getCtx().getServletContext().getAttribute(KEY_USER_SETTINGS);
if (settingsMap == null) {
settingsMap = new HashMap<UserSession, Map<String, String>>();
getCtx().getServletContext().setAttribute(KEY_USER_SETTINGS, settingsMap);