Attributes attrs = sr.getAttributes();
String membershipDN = sr.getNameInNamespace();
Group group = getGroupFromMembershipDN(ctx, membershipDN);
String type = explodeDN(membershipDN, true)[0];
Membership membership = createMembershipObject(username, group.getId(), type);
memberships.add(membership);
if (attrs.get(ldapAttrMapping.membershipTypeMemberValue).size() > 1)
{
ModificationItem[] mods = new ModificationItem[1];