code: public static SparkNameFunction fromConfig(Config config, String key, Registry registry) {
      return fromPatternList(config.getConfigList(key), registry);
    }
docs: Create a name function based on a config.