public Map<String, AffectedService> getServiceMap() {
    Map<String, AffectedService> result = new HashMap<>();
    for (AffectedService service : services) {
      result.put(service.name, service);
    }
    return result;
  }
@return a map of <service name, AffectedService>.
ambari-server/src/main/java/org/apache/ambari/server/stack/upgrade/ConfigUpgradePack.java