@Override
public void onConnect(WebSocket w) {
super.onConnect(w);
org.atmosphere.websocket.WebSocket webSocket = new GrizzlyWebSocket(w, config);
//logger.debug("onOpen");
if (!DefaultWebSocket.class.isAssignableFrom(w.getClass())) {
throw new IllegalStateException();
}