code: public boolean toStarting()
    {
      LifecycleState state;
      
      synchronized (this) {
        state = _state;
  
        if (state.isAfterStarting() && ! state.isStopped()) {
          return false;
        }
        
        _state = STARTING;
  
        _lastChangeTime = CurrentTime.currentTime();
  
        if (_log != null && _log.isLoggable(_level) && _log.isLoggable(Level.FINER)) {
          _log.finer("starting " + _name);
        }
      }
  
      notifyListeners(state, STARTING);
  
      return true;
    }
docs: Changes to the starting state.
  
  @return true if the transition is allowed