else if (target instanceof MembershipType)
{
try
{
MembershipType memberType = (MembershipType)target;
MembershipDAOImpl mtHandler = (MembershipDAOImpl)service_.getMembershipHandler();
DBObjectQuery<MembershipImpl> query = new DBObjectQuery<MembershipImpl>(MembershipImpl.class);
query.addLIKE("MEMBERSHIP_TYPE", memberType.getName());
mtHandler.removeMemberships(query, true);
}
catch (Exception e)
{
log.error("Error while removing a Membership", e);
}