public void onOpen(WebSocketConnection webSocketConnection) {
if (webSocketWriteTimeout != -1)
webSocketConnection.getWebSocketContext().setTimeoutSecs(webSocketWriteTimeout);
if (maxTextBufferSize != -1) webSocketConnection.getWebSocketContext().setMaxMessageSize(maxTextBufferSize);
WebSocket webSocket = new WebLogicWebSocket(webSocketConnection, config);
// TODO: Dangerous
webSocketConnection.getWebSocketContext().getServletContext().setAttribute(webSocketConnection.toString(), webSocket);
AtmosphereRequest ar = AtmosphereRequest.cloneRequest(request.get(), true, false, true);
request.set(null);