private ApiConfigGroup createConfigGroup(AmClusterDef clusterDef, AmNodeDef nodeDef,
String serviceName) {
ApiConfigGroup confGroup;
confGroup = new ApiConfigGroup();
ApiConfigGroupInfo info = new ApiConfigGroupInfo();
confGroup.setApiConfigGroupInfo(info);
info.setClusterName(clusterDef.getName());
info.setDescription(serviceName + " configuration");
info.setGroupName(nodeDef.getName());
List<ApiHostInfo> hosts = new ArrayList<>();
ApiHostInfo hostInfo = new ApiHostInfo();
hostInfo.setHostName(nodeDef.getFqdn());
hosts.add(hostInfo);
info.setHosts(hosts);
info.setTag(serviceName);
List<ApiConfigGroupConfiguration> desiredConfigs = new ArrayList<>();
info.setDesiredConfigs(desiredConfigs);
return confGroup;
}