public List<String> getConfigDependenciesWithComponents() {
    List<String> retVal = new ArrayList<>();
    if (configDependencies != null) {
      retVal.addAll(configDependencies);
    }
    if (components != null) {
      for (ComponentInfo c : components) {
        if (c.getConfigDependencies() != null) {
          retVal.addAll(c.getConfigDependencies());
        }
      }
    }
    return retVal.size() == 0 ? (configDependencies == null ? null : configDependencies) : retVal;
  }
Builds the config map specific to this service.
ambari-server/src/main/java/org/apache/ambari/server/state/ServiceInfo.java