public ApiBlueprint toApiBlueprint() {
ApiBlueprint apiBlueprint = new ApiBlueprint();
apiBlueprint.setConfigurations(configurations);
ApiBlueprintInfo apiBlueprintInfo = new ApiBlueprintInfo();
apiBlueprintInfo.setStackName(amStack.getName());
apiBlueprintInfo.setStackVersion(amStack.getVersion());
apiBlueprint.setApiBlueprintInfo(apiBlueprintInfo);
List<ApiHostGroup> apiHostGroups = new ArrayList<ApiHostGroup>();
for (AmNodeDef node : nodes) {
apiHostGroups.add(node.toApiHostGroupForBlueprint());