}
public List<Map<String,String>> getSessionList() throws NoSuchUserException, DotDataException, DotSecurityException {
validateUser();
List<Map<String,String>> sessionList=new ArrayList<Map<String,String>>();
SessionMonitor sm = (SessionMonitor)
WebContextFactory.get().getServletContext().getAttribute(WebKeys.USER_SESSIONS);
SimpleDateFormat sdf = new SimpleDateFormat("HH:mm:ss");
for(String id : sm.getSysUsers().keySet()) {
Map<String,String> ss=new HashMap<String,String>();
ss.put("sessionId",id);
User user=APILocator.getUserAPI().loadUserById(sm.getSysUsers().get(id), APILocator.getUserAPI().getSystemUser(), false);
ss.put("userId",user.getUserId());
ss.put("userEmail", user.getEmailAddress());
ss.put("userFullName", user.getFullName());
ss.put("address", sm.getSysUsersAddress().get(id));
HttpSession session=sm.getUserSessions().get(id);
Date d = new Date();
d.setTime(session.getCreationTime());
ss.put("sessionTime", DateUtil.prettyDateSince(d, PublicCompanyFactory.getDefaultCompany().getLocale()) );
sessionList.add(ss);
}