code: public boolean setEvaluatorRestartState(final EvaluatorRestartState to) {
  
      if (this.evaluatorRestartState.isLegalTransition(to)) {
        this.evaluatorRestartState = to;
        return true;
      }
  
      return false;
    }
docs: sets the current process of the restart.