}
}
protected boolean isLoggedIn(String userId) {
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();