public static HostGroup create(String name, Set<String> componentNames) {
      HostGroup group = new HostGroup();
      group.setName(name);
      Set<Map<String, String>> components = componentNames.stream().map(comp -> ImmutableMap.of("name", comp)).collect(toSet());
      group.setComponents(components);
      return group;
    }
@return value attributes in <i>attribute name -> property name -> value</i> format
ambari-server/src/main/java/org/apache/ambari/server/api/services/stackadvisor/recommendations/RecommendationResponse.java