private boolean doChangeState(State currentState,State acquireState) throws RemoteException, InterruptedException {
  ServiceItem activeCandidate=findActive();
  if (activeCandidate != null) {
    if (_logger.isLoggable(Level.FINE)) {
      _logger.fine("Advance from [" + currentState + "] to ["+ acquireState+ "] was rejected - found ["+ activeCandidate.service+ "] in [ACTIVE] state");
    }
    return false;
  }
  if (_logger.isLoggable(Level.FINE)) {
    _logger.fine("Advance from [" + currentState + "] to ["+ acquireState+ "] was accepted");
  }
  return changeState(currentState,acquireState,false);
}

private boolean doChangeState ( State currentState , State acquireState ) throws RemoteException , InterruptedException { ServiceItem activeCandidate = findActive ( ) ; if ( activeCandidate != null ) { if ( _logger . isLoggable ( Level . FINE ) ) { _logger . fine ( "Advance from [" + currentState + "] to [" + acquireState + "] was rejected - found [" + activeCandidate . service + "] in [ACTIVE] state" ) ; } return false ; } if ( _logger . isLoggable ( Level . FINE ) ) { _logger . fine ( "Advance from [" + currentState + "] to [" + acquireState + "] was accepted" ) ; } return changeState ( currentState , acquireState , false ) ; }
change current state to acquire state in lookup service
