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