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