public static Config rewriteConfig(Config config) {
    Optional<String> configRewriterNamesOptional = new JobConfig(config).getConfigRewriters();
    if (configRewriterNamesOptional.isPresent()) {
      String[] configRewriterNames = configRewriterNamesOptional.get().split(",");
      Config rewrittenConfig = config;
      for (String configRewriterName : configRewriterNames) {
        rewrittenConfig = applyRewriter(rewrittenConfig, configRewriterName);
      }
      return rewrittenConfig;
    } else {
      return config;
    }
  }
Re-writes configuration using a ConfigRewriter, if one is defined. If
there is no ConfigRewriter defined for the job, then this method is a
no-op.

@param config The config to re-write
@return rewrited configs
samza-core/src/main/java/org/apache/samza/util/ConfigUtil.java