Source:
public void onMessage(final ByteBuffer buffer) { LOG.info("RECOVERED INFO FROM THE LOGIN SERVER"); final Request request = AbstractServerWebSocketHandler.Decoder.parseRequest(buffer); if (request.getRequestType() == Request.MessageType.TIME) { final Request rsp = TimeManager.decodeRequest(request); if (rsp != null) { try { this.getParentManager().send(rsp, request.getSessionInfo(), LoginClientWebSocket.class); } catch (ConnectionException e) { LOG.error(LoggingConstants.EXCEPTION_MESSAGE, e); } } return; } if (request.getRequestType() == Request.MessageType.LOGIN) { LoginInformation login = null; try { login = LoginInformation.parseFrom(request.getOtherData()); } catch (InvalidProtocolBufferException e) { final Message.ProtoException protoEx = ExceptionUtilities.createProtoException(e); this.getParentServer().send(getConnectionFromState(getStateFromId(request.getSessionInfo())), createExceptionRequest(request, protoEx)); LOG.error(LoggingConstants.EXCEPTION_MESSAGE, e); } final LoginConnectionState state = (LoginConnectionState) getStateFromId(request.getSessionInfo()); if (state == null) { final Exception e = new NullPointerException("No State was grabbed for session:[ " + request.getSessionInfo() + "]"); LOG.error("Unable to create a state object for the given session", e); final Request result = createExceptionRequest(ProxyConnectionManager.createClientRequest(request), ExceptionUtilities.createProtoException(e)); this.getParentServer().send(getConnectionFromState(state), result); return; } state.addTry(); if (login == null) { LOG.error("Login failed to get to the client"); final Request result = ProxyConnectionManager.createClientRequest(request); final Request.Builder errorMessage = ProtobufUtilities.createBaseResponse(result, true); errorMessage.setResponseText(errorMessage.getResponseText() + " : The data sent back from the login server was not the correct format"); this.getParentServer().send(getConnectionFromState(state), result); return; } loginUser(login, request, state); createUser(login, request); } }

Target:
public void onMessage(final ByteBuffer buffer) { LOG.debug("Received login response info"); final Request request = AbstractServerWebSocketHandler.Decoder.parseRequest(buffer); if (request.getRequestType() == Request.MessageType.TIME) { final Request rsp = TimeManager.decodeRequest(request); if (rsp != null) { try { this.getParentManager().send(rsp, request.getSessionInfo(), LoginClientWebSocket.class); } catch (ConnectionException e) { LOG.error(LoggingConstants.EXCEPTION_MESSAGE, e); } } return; } if (request.getRequestType() == Request.MessageType.LOGIN) { LoginInformation login = null; try { login = LoginInformation.parseFrom(request.getOtherData()); } catch (InvalidProtocolBufferException e) { final Message.ProtoException protoEx = ExceptionUtilities.createProtoException(e); this.getParentServer().send(getConnectionFromState(getStateFromId(request.getSessionInfo())), createExceptionRequest(request, protoEx)); LOG.error(LoggingConstants.EXCEPTION_MESSAGE, e); } final LoginConnectionState state = (LoginConnectionState) getStateFromId(request.getSessionInfo()); if (state == null) { final Exception e = new NullPointerException("No State was grabbed for session: [" + request.getSessionInfo() + "]"); LOG.error("Unable to create a state object for the given session ", e); final Request result = createExceptionRequest(ProxyConnectionManager.createClientRequest(request), ExceptionUtilities.createProtoException(e)); this.getParentServer().send(getConnectionFromState(state), result); return; } state.addTry(); if (login == null) { LOG.error("Login failed to get to the client"); final Request result = ProxyConnectionManager.createClientRequest(request); final Request.Builder errorMessage = ProtobufUtilities.createBaseResponse(result, true); errorMessage.setResponseText(errorMessage.getResponseText() + " : The data sent back from the login server was not the correct format"); this.getParentServer().send(getConnectionFromState(state), result); return; } loginUser(login, request, state); createUser(login, request); } }