docs: ServerStatus getState() {
          final InternalState requiredState = this.requiredState;
          final InternalState state = internalState;
          if(requiredState == InternalState.FAILED) {
              return ServerStatus.FAILED;
          }
          switch (state) {
              case STOPPED:
                  return ServerStatus.STOPPED;
              case SERVER_STARTED:
                  return  ServerStatus.STARTED;
              default: {
                  if(requiredState == InternalState.SERVER_STARTED) {
                      return ServerStatus.STARTING;
                  } else {
                      return ServerStatus.STOPPING;
                  }
              }
          }
      }