GrouperLog.debug(LOG, s, msg + " has members: " + hasMships.size());
GrouperLog.debug(LOG, orig, msg + " has members: " + hasMships.size());
  private static Set _findGroupAsMember(    GrouperSession s, String oid, Member m, Field f, Set isMember  )    throws  GroupNotFoundException  {    Set     mships      = new LinkedHashSet();    Set     hasMembers  = new LinkedHashSet();    String  msg         = null;    if (m.getSubjectTypeId().equals("group")) {      // Convert member back to a group      Group gm = m.toGroup();      msg = "member '" + m + "' is group";      GrouperLog.debug(LOG, s, msg);      // And attach root session for better looking up of memberships      gm.setSession(GrouperSessionFinder.getRootSession());      // Find members of m      Set hasMships = gm.getMemberships();      GrouperLog.debug(LOG, s, msg + " has members: " + hasMships.size());      // Add members of m to g      // Add members of m to where g is a member      mships.addAll(        _findMembershipsOfMember(          s, oid, gm.getUuid(), f, isMember, hasMships        )      );    }    if (msg != null) {      GrouperLog.debug(LOG, s, msg + " total: " + mships.size());    }    return mships;   } // private static Set _findGroupAsMember(s, oid, m, f, isMember)