public boolean isStarted() {
        lock.lock();
        try {
            return currentState.equals(STARTED) || currentState.equals(CLIENT_CONNECTED) || currentState
                    .equals(CLIENT_DISCONNECTED);
        } finally {
            lock.unlock();
        }
    }
public boolean isStarted ( ) { lock . lock ( ) ; try { return currentState . equals ( STARTED ) || currentState . equals ( CLIENT_CONNECTED ) || currentState . equals ( CLIENT_DISCONNECTED ) ; } finally { lock . unlock ( ) ; } }
@return true if the client is started.