public List<String> getServicesForConfigType(String config) {
    List<String> serviceNames = new ArrayList<>();
    for (Map.Entry<String, Map<String, Map<String, ConfigProperty>>> entry : serviceConfigurations.entrySet()) {
      Map<String, Map<String, ConfigProperty>> typeMap = entry.getValue();
      String serviceName = entry.getKey();
      if (typeMap.containsKey(config) && !getExcludedConfigurationTypes(serviceName).contains(config)) {
        serviceNames.add(serviceName);
      }
    }
    return serviceNames;
  }
Obtain the service name which corresponds to the specified configuration.

@param config  configuration type

@return name of service which corresponds to the specified configuration type
ambari-server/src/main/java/org/apache/ambari/server/controller/internal/Stack.java