final SyncopeUser user = (SyncopeUser) subject;
for (Membership membership : user.getMemberships()) {
if (membership.getVirAttrs() != null && !membership.getVirAttrs().isEmpty()) {
final MembershipMod membershipMod = findMembershipMod(membership, membershipsToAdd);
if (membershipMod != null) {
binder.fillVirtual(membership, membershipMod.getVirAttrsToRemove() == null
? Collections.<String>emptySet()
: membershipMod.getVirAttrsToRemove(),
membershipMod.getVirAttrsToUpdate() == null ? Collections.<AttributeMod>emptySet()
: membershipMod.getVirAttrsToUpdate(), AttributableUtil.getInstance(
AttributableType.MEMBERSHIP));