code: private void preDelete(MembershipType type) throws Exception
     {
        for (MembershipTypeEventListener listener : listeners)
        {
           listener.preDelete(type);
        }
     }
docs: Notifying listeners before membership type deletion.
  
  @param type
  the membership which is used in delete operation
  @throws Exception
  if any listener failed to handle the event