code: public static DynamicConfigGenerator createDynamicConfigGenerator(Config config) {
      String dynamicConfigGeneratorClassName =
          ConfigUtils.getString(config, ConfigurationKeys.DYNAMIC_CONFIG_GENERATOR_CLASS_KEY,
              ConfigurationKeys.DEFAULT_DYNAMIC_CONFIG_GENERATOR_CLASS_KEY);
  
      try {
        ClassAliasResolver<DynamicConfigGenerator> aliasResolver =
            new ClassAliasResolver<>(DynamicConfigGenerator.class);
        return aliasResolver.resolveClass(dynamicConfigGeneratorClassName).newInstance();
      } catch (ReflectiveOperationException e) {
        throw new RuntimeException("Could not construct DynamicConfigGenerator " +
            dynamicConfigGeneratorClassName, e);
      }
    }
docs: Get an instance of a {@link DynamicConfigGenerator}
  @param config {@link Config} to pass to the constructor
  @return an instance of {@link DynamicConfigGenerator}