@Override
	public void handshakeResponseReceived(HandshakeResponseEvent e) {
		if(e.getStatus() == HandshakeStatus.FAILED) {
			enableUserInput(true);
			switch(e.getCause()) {
				case HandshakeResponseEvent.CAUSE_USERNAME_PASSWORD_NOMATCH:
					setLoginActionInfoText(LoginStatus.ERROR_USERNAME_PASSWORD);
				break;
				case HandshakeResponseEvent.CAUSE_INCORRECT_VERSION:
					setLoginActionInfoText(LoginStatus.ERROR_VERSION);
				break;
				case HandshakeResponseEvent.CAUSE_INCORRECT_KEY:
					setLoginActionInfoText(LoginStatus.ERROR_KEY);
				break;
				case HandshakeResponseEvent.CAUSE_USER_BANNED:
					setLoginActionInfoText(LoginStatus.BANNED);
				break;
			}
		} else if(e.getStatus() == HandshakeStatus.SUCCESSFUL) {
			// Be happy.
			setLoginActionInfoText(LoginStatus.SUCCESSFUL);
			loginSuccessfulCallback.loginSuccessful(e);
		}
	}