ComputeResourceResource computeHostResource)
throws AppCatalogException {
Set<String> hostAliases = description.getHostAliases();
if (hostAliases != null && !hostAliases.isEmpty()) {
for (String alias : hostAliases) {
HostAliasResource aliasResource = new HostAliasResource();
aliasResource.setComputeHostResource(computeHostResource);
aliasResource.setResourceID(computeHostResource.getResourceId());
aliasResource.setAlias(alias);
aliasResource.save();
}
}
}