@SuppressWarnings("deprecation")
    public void processLoginRequest(OMMSolicitedItemEvent event)
    {

        OMMMsg msg = event.getMsg();
        Token token = event.getRequestToken();
        byte msgType = msg.getMsgType();
        System.out.println(_instanceName + " Received Login " + OMMMsg.MsgType.toString(msgType));

        switch (msgType)
        {
            case OMMMsg.MsgType.REQUEST:
            {
                _loginName = msg.getAttribInfo().getName();
    
                OMMMsg reqMsg;
                if (_reencode)
                    reqMsg = OMMMsgReencoder.getEncodeMsgfrom(msg, 2000);
                else
                    reqMsg = msg;
    
                _intSpec.setMsg(reqMsg);
    
                System.out.println(_instanceName + " Sending \"" + _loginName + "\" login request");
                _loginHandle = _consumer.registerClient(_eventQueue, _intSpec, this, token);
                return;
            }
            case OMMMsg.MsgType.STREAMING_REQ:
            case OMMMsg.MsgType.NONSTREAMING_REQ:
            case OMMMsg.MsgType.PRIORITY_REQ:
                System.out.println("Received deprecated message type of "
                        + OMMMsg.MsgType.toString(msg.getMsgType())
                        + ", not supported. ");
                return;
            case OMMMsg.MsgType.CLOSE_REQ:
                System.out.println(_instanceName + " Logging out \"" + _loginName + "\"");
                _consumer.unregisterClient(_loginHandle);
                _loginHandle = null;
                return;
            case OMMMsg.MsgType.GENERIC:
                System.out.println("Received generic message type, not supported. ");
                return;
            default:
                System.out.println("ERROR: Received unexpected message type. " + msgType);
                return;
        }
    }