AttributeMod attrMod = new AttributeMod();
attrMod.setSchema(attr.getSchema());
attrMod.setValuesToBeAdded(attr.getValues());
if (!attrMod.isEmpty()) {
membMod.addVirtualAttributeToBeUpdated(attrMod);
membMod.addAttributeToBeRemoved(attrMod.getSchema());
}
}
membMod.setResourcesToBeAdded(entry.getValue().getResources());
}