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