List activeSessionBeanList = CmsSessionContextListener.getSessionInfoBeanList();
Iterator activeSessionsIterator = activeSessionBeanList.iterator();
logger.info("activeSessionBeanList:" + activeSessionBeanList.size());
while(activeSessionsIterator.hasNext())
{
SessionInfoBean sessionBean = (SessionInfoBean)activeSessionsIterator.next();
logger.info("sessionBean:" + sessionBean.getId() + "=" + sessionBean.getPrincipal().getName());
if(sessionBean.getId().equals(requestSessionId))
{
logger.info("Found a matching sessionId");
allowedSessionId = true;
this.principal = sessionBean.getPrincipal();
break;
}
}