public synchronized void changeState(StartupState newState){
  if (_currentSpaceState == newState)   return;
  if (_logger.isLoggable(Level.FINE)) {
    _logger.log(Level.FINE,"Changing space [" + _spaceName + "] state from "+ _currentSpaceState+ " to "+ newState);
  }
  try {
    saveState(newState);
  }
 catch (  IOException e) {
    if (_logger.isLoggable(Level.WARNING)) {
      _logger.log(Level.WARNING," Error on space connect [" + _spaceName + "] state.",e);
    }
  }
  _currentSpaceState=newState;
}

public synchronized void changeState ( StartupState newState ) { if ( _currentSpaceState == newState ) return ; if ( _logger . isLoggable ( Level . FINE ) ) { _logger . log ( Level . FINE , "Changing space [" + _spaceName + "] state from " + _currentSpaceState + " to " + newState ) ; } try { saveState ( newState ) ; } catch ( IOException e ) { if ( _logger . isLoggable ( Level . WARNING ) ) { _logger . log ( Level . WARNING , " Error on space connect [" + _spaceName + "] state." , e ) ; } } _currentSpaceState = newState ; }
change space state and store it
