code: public RuntimeEnvironmentBuilder schedulerService(Object globalScheduler) {
          if (globalScheduler == null) {
              return this;
          }
          if (!(globalScheduler instanceof GlobalSchedulerService)) {
              throw new IllegalArgumentException("Argument is not of type GlobalSchedulerService");
          }
          _runtimeEnvironment.setSchedulerService((GlobalSchedulerService)globalScheduler);
          return this;
      }
docs: Sets the schedulerService.
  
  @param globalScheduler schedulerService
  @return this RuntimeEnvironmentBuilder