if (anotherGroup.hasItems()) {
Iterator<Map.Entry<String, AttributeItem>> otherItemEntries = anotherGroup.getItems().entrySet().iterator();
while (otherItemEntries.hasNext()) {
Map.Entry<String, AttributeItem> otherItemEntry = otherItemEntries.next();
String otherAttributeName = otherItemEntry.getKey();
AttributeItem item = this.items.get(otherAttributeName);
if (item == null) {
return false;
}
AttributeGroup group = item.getGroup();
AttributeGroup otherGroup = otherItemEntry.getValue().getGroup();
if (group != null) {
if (!group.isSupersetOf(otherGroup)) {
return false;
}