code: public static Config loadClusterConfig() {
      Config defaultConfig = loadDefaults(
          Key.HERON_CLUSTER_HOME.getDefaultString(), Key.HERON_CLUSTER_CONF.getDefaultString());
      Config clusterConfig = Config.toClusterMode(defaultConfig); //to token-substitute the conf paths
  
      Config.Builder cb = Config.newBuilder()
          .putAll(defaultConfig)
          .putAll(loadConfig(Context.packingFile(clusterConfig)))
          .putAll(loadConfig(Context.healthmgrFile(clusterConfig)))
          .putAll(loadConfig(Context.schedulerFile(clusterConfig)))
          .putAll(loadConfig(Context.stateManagerFile(clusterConfig)))
          .putAll(loadConfig(Context.uploaderFile(clusterConfig)))
          .putAll(loadConfig(Context.downloaderFile(clusterConfig)))
          .putAll(loadConfig(Context.statefulConfigFile(clusterConfig)));
  
      // Add the override config at the end to replace any existing configs
      cb.putAll(loadConfig(Context.overrideFile(clusterConfig)));
  
      return cb.build();
    }
docs: Loads raw configurations using the default configured heronHome and configPath on the cluster.
  The returned config must be converted to either local or cluster mode to trigger pattern
  substitution of wildcards tokens.