docs: public static Configuration generateTaskManagerConfiguration(
  				Configuration baseConfig,
  				String jobManagerHostname,
  				int jobManagerPort,
  				int numSlots,
  				FiniteDuration registrationTimeout) {
  
  		Configuration cfg = cloneConfiguration(baseConfig);
  
  		if (jobManagerHostname != null && !jobManagerHostname.isEmpty()) {
  			cfg.setString(JobManagerOptions.ADDRESS, jobManagerHostname);
  		}
  
  		if (jobManagerPort > 0) {
  			cfg.setInteger(JobManagerOptions.PORT, jobManagerPort);
  		}
  
  		cfg.setString(TaskManagerOptions.REGISTRATION_TIMEOUT, registrationTimeout.toString());
  		if (numSlots != -1){
  			cfg.setInteger(TaskManagerOptions.NUM_TASK_SLOTS, numSlots);
  		}
  
  		return cfg;
  	}