final Set<String> vattrToBeRemoved = new HashSet<String>();
final Set<String> membVattrToBeRemoved = new HashSet<String>();
final Set<AttributeMod> vattrToBeUpdated = new HashSet<AttributeMod>();
// Search for all mapped vattrs
final AbstractMapping umapping = getMapping();
for (AbstractMappingItem mappingItem : umapping.getItems()) {
if (mappingItem.getIntMappingType() == IntMappingType.UserVirtualSchema) {
vattrToBeRemoved.add(mappingItem.getIntAttrName());
} else if (mappingItem.getIntMappingType() == IntMappingType.MembershipVirtualSchema) {
membVattrToBeRemoved.add(mappingItem.getIntAttrName());
}