ItsNatDocument itsNatDoc = null;
Document doc = itsNatDoc.getDocument();
ItsNatDocumentTemplate thisDocTemplate = itsNatDoc.getItsNatDocumentTemplate();
ItsNatServlet itsNatServlet = itsNatDoc.getItsNatDocumentTemplate().getItsNatServlet();
ItsNatServletContext appCtx = itsNatServlet.getItsNatServletConfig().getItsNatServletContext();
final List<ItsNatSession> sessionList = new LinkedList<ItsNatSession>();
ItsNatSessionCallback cb = new ItsNatSessionCallback()
{
public boolean handleSession(ItsNatSession session)
{
sessionList.add(session);
return true; // continue
}
};
appCtx.enumerateSessions(cb);
ElementGroupManager factory = itsNatDoc.getElementGroupManager();
ElementList sessionNodeList = factory.createElementList(doc.getElementById("otherSessionsId"),true);
ItsNatVariableResolver resolver = itsNatDoc.createItsNatVariableResolver(true);