private static void call(Collection<?> pages, String call){
ScriptBuffer script = new ScriptBuffer();
script.appendScript(call);
for (Iterator<?> it = pages.iterator(); it.hasNext();){
ScriptSession otherSession = (ScriptSession) it.next();
otherSession.addScript(script);
}
}
/**
* Calls a script in all sibling widget instances within the scope of the current DWR thread (all widgets with same origin URL)