if (applicationSession == null) throw new RuntimeException("Invalid session, please reload your application");
JettyWebSocket jettyWebSocket;
final UIContext uiContext = applicationSession.getUIContext(key);
uiContext.acquire();
try {
UIContext.setCurrent(uiContext);
jettyWebSocket = newJettyWebsocket();
PPusher.get().initialize(jettyWebSocket);
} finally {