code: public Collection<Membership> findMembershipsByGroup(Group group) throws Exception
     {
        Session session = service.getStorageSession();
        try
        {
           return findMembershipsByGroup(session, group);
        }
        finally
        {
           session.logout();
        }
     }
docs: {@inheritDoc}