Iterator<Map.Entry<String, AttributeItem>> it = getItems().entrySet().iterator();
while (it.hasNext()) {
Map.Entry<String, AttributeItem> entry = it.next();
AttributeGroup group = entry.getValue().getGroup();
if (group == null) {
copyGroup.addAttribute(entry.getKey());
} else {
copyGroup.addAttribute(entry.getKey(), group.toCopyGroup());
}
}
}