docs: public static boolean setSchedulerLocation(
        Config runtime,
        String schedulerEndpoint,
        IScheduler scheduler) {
  
      // Set scheduler location to host:port by default. Overwrite scheduler location if behind DNS.
      Scheduler.SchedulerLocation.Builder builder = Scheduler.SchedulerLocation.newBuilder()
          .setTopologyName(Runtime.topologyName(runtime))
          .setHttpEndpoint(schedulerEndpoint);
  
      // Set the job link in SchedulerLocation if any
      List<String> jobLinks = scheduler.getJobLinks();
      // Check whether IScheduler provides valid job link
      if (jobLinks != null) {
        builder.addAllJobPageLink(jobLinks);
      }
  
      Scheduler.SchedulerLocation location = builder.build();
  
      LOG.log(Level.INFO, "Setting Scheduler locations: {0}", location);
      SchedulerStateManagerAdaptor statemgr = Runtime.schedulerStateManagerAdaptor(runtime);
      Boolean result =
          statemgr.setSchedulerLocation(location, Runtime.topologyName(runtime));
  
      if (result == null || !result) {
        LOG.severe("Failed to set Scheduler location");
        return false;
      }
  
      return true;
    }