return mships;
mships.addAll(_findGroupAsMember(root, g.getUuid(), m, isMember));   g.setSession(s); Set resetMships = new LinkedHashSet();  Iterator iter = mships.iterator(); while (iter.hasNext()) { Membership ms = (Membership) iter.next(); ms.setSession(s); resetMships.add(ms); }  GrouperLog.debug(LOG, s, "memberOf total" + msg + resetMships.size()); return resetMships;
  protected static Set doMemberOf(GrouperSession s, Stem ns, Member m)     throws  GroupNotFoundException  {    // TODO Add logging as above    Set mships    = new LinkedHashSet();    // Stems can't be members    Set isMember  = new LinkedHashSet();    // Add members of m to ns    // Add members of m to where ns is a member    mships.addAll(      _findGroupAsMember(s, ns.getUuid(), m, isMember)    );    return mships;  } // protected static Set doMemberOf(s, m)