class NameService {

  public static List<NameService> fromConfig(ConfigHelper config, Cluster cluster) {
    return nameServiceIds(config, cluster).stream()
      .map(nameServiceId -> nameService(nameServiceId, config, cluster))
      .collect(Collectors.toList());
  }

  private  NameService(String nameServiceId, List<NameNode> nameNodes);

}