private Collection<ScriptSession> getUsersToAffect()
    {
        WebContext wctx = WebContextFactory.get();
        String currentPage = wctx.getCurrentPage();

        // For all the browsers on the current page:
        Collection<ScriptSession> sessions = wctx.getScriptSessionsByPage(currentPage);

        // But not the current user!
        sessions.remove(wctx.getScriptSession());

        log.debug("Affecting " + sessions.size() + " users");

        return sessions;
    }
private Collection < ScriptSession > getUsersToAffect ( ) { WebContext wctx = WebContextFactory . get ( ) ; String currentPage = wctx . getCurrentPage ( ) ; Collection < ScriptSession > sessions = wctx . getScriptSessionsByPage ( currentPage ) ; sessions . remove ( wctx . getScriptSession ( ) ) ; log . debug ( "Affecting " + sessions . size ( ) + " users" ) ; return sessions ; }
@return The collection of people to affect