public synchronized void waitForLastSpace() throws InterruptedException {
  if (!_activeSpaces.isEmpty())   return;
  _currentSpaceState=StartupState.WAITING;
  wait();
  changeState(StartupState.NOT_LAST);
}

public synchronized void waitForLastSpace ( ) throws InterruptedException { if ( ! _activeSpaces . isEmpty ( ) ) return ; _currentSpaceState = StartupState . WAITING ; wait ( ) ; changeState ( StartupState . NOT_LAST ) ; }
wait for the last space to start
