public Collection<Membership> removeMembershipByUser(String userName, boolean broadcast) throws Exception
   {
      Session session = service.getStorageSession();
      try
      {
         return removeMembershipByUser(session, userName, broadcast);
      }
      finally
      {
         session.logout();
      }
   }
public Collection < Membership > removeMembershipByUser ( String userName , boolean broadcast ) throws Exception { Session session = service . getStorageSession ( ) ; try { return removeMembershipByUser ( session , userName , broadcast ) ; } finally { session . logout ( ) ; } }
{@inheritDoc}