code: @Override
    public synchronized void stop() {
      if (state == STATE.STOPPED ||
          state == STATE.INITED ||
          state == STATE.NOTINITED) {
        // already stopped, or else it was never
        // started (eg another service failing canceled startup)
        return;
      }
      ensureCurrentState(STATE.STARTED);
      changeState(STATE.STOPPED);
      LOG.info("Service:" + getName() + " is stopped.");
    }
docs: {@inheritDoc}
  
  @throws IllegalStateException
  if the current service state does not permit
  this action