private void createHostGroupInfo(Collection<ExportedHostGroup> exportedHostGroups) {
    for (ExportedHostGroup exportedGroup : exportedHostGroups) {
      HostGroupInfo groupInfo = new HostGroupInfo(exportedGroup.getName());
      groupInfo.addHosts(exportedGroup.getHostInfo());
      groupInfo.setConfiguration(exportedGroup.getConfiguration());
      hostGroupInfo.put(groupInfo.getHostGroupName(), groupInfo);
    }
  }
Request to export a blueprint from an existing cluster.
ambari-server/src/main/java/org/apache/ambari/server/controller/internal/ExportBlueprintRequest.java