Пример #1
0
 @SuppressWarnings("unchecked")
 private static Collection<ScriptSession> loadScriptPages() {
   WebContext context = WebContextFactory.get();
   if (context == null) {
     context = wctx;
   }
   String currentPage = context.getServletContext().getContextPath() + SCRIPT_PAGE;
   // Loop over all the users on the current page
   Collection<ScriptSession> pages = context.getScriptSessionsByPage(currentPage);
   logger.info(currentPage + " ScriptSessions: " + pages.size());
   return pages;
 }