* For 99% of cases the former method will be much simpler to use.
* @param serverContext The specific DWR context in which to execute
*/
public static void withSession(ServerContext serverContext, String sessionId, Runnable task)
{
TaskDispatcher taskDispatcher = TaskDispatcherFactory.get(serverContext);
taskDispatcher.dispatchTask(new IdScriptSessionFilter(sessionId), task);
}