String groupId = temp[1];
if (mhandler.findMembershipByUserGroupAndType(data.getUserName(), groupId, membership) == null) {
Group group = service.getGroupHandler().findGroupById(groupId);
MembershipType mt = service.getMembershipTypeHandler().createMembershipTypeInstance();
mt.setName(membership);
mhandler.linkMembership(user, group, mt, true);
printInfo(" Created membership " + data.getUserName() + ", " + groupId + ", " + membership);
} else {
printInfo(" Ignored membership " + data.getUserName() + ", " + groupId + ", " + membership);
}
}