protected String printState(int pCurrentState) {
        switch (pCurrentState) {
            case STATE_IDLE:
                return "STATE_IDLE";
            case STATE_WAIT_FOR_HELLO:
                return "STATE_WAIT_FOR_HELLO";
            case STATE_WAIT_FOR_COMMAND:
                return "STATE_WAIT_FOR_COMMAND";
            case STATE_WAIT_FOR_WHO_ARE_YOU:
                return "STATE_WAIT_FOR_WHO_ARE_YOU";
            case STATE_WAIT_FOR_WELCOME:
                return "STATE_WAIT_FOR_WELCOME";
            case STATE_WAIT_FOR_LOCK:
                return "STATE_WAIT_FOR_LOCK";
            case STATE_LOCK_RECEIVED:
                return "STATE_LOCK_RECEIVED";
        }
        return "UNKNOWN: " + pCurrentState;
    }