if (configGroup.getTag().equals(request.getTag())
&& !configGroup.getId().equals(request.getId())) {
// Check the new host list for duplicated with this group
for (Host host : hosts.values()) {
if (configGroup.getHosts().containsKey(host.getHostName())) {
throw new DuplicateResourceException("Host is already " +
"associated with a config group"
+ ", clusterName = " + configGroup.getClusterName()
+ ", configGroupName = " + configGroup.getName()
+ ", tag = " + configGroup.getTag()
+ ", hostname = " + host.getHostName());