String pubId = getSourceDocument().getPublication().getId();
SessionListener sessions = new SessionListener();
WeakHashMap allSessions = sessions.getAllSessions();
boolean loggedIn = false;
Iterator userit = allSessions.entrySet().iterator();
while (userit.hasNext()) {
Map.Entry entry = (Map.Entry) userit.next();
HttpSession nextsession = (HttpSession) entry.getValue();
Identity identity = (Identity) nextsession.getAttribute(IDENTITY);