GrouperLog.debug(LOG, this.s, this.msg + " g isMember: " + isMember.size());
  private Set _calculate()     throws  GroupNotFoundException,            MemberNotFoundException  {    this._extractObjects();    GrouperLog.debug(LOG, s, msg);    Set mships  = new LinkedHashSet();    // If we are working on a group, where is it a member    Set isMember = new LinkedHashSet();    if (this.g != null) {      isMember = this.g.toMember().getAllMemberships();    }    GrouperLog.debug(LOG, this.s, this.msg + " g isMember: " + isMember.size());    // Members of m if m is a group    Set hasMembers  = this._findMembersOfMember();    GrouperLog.debug(LOG, this.s, this.msg + " m hasMembers: " + hasMembers.size());    // Add m to where g is a member if f == "members"    mships.addAll( this._addMemberToWhereGroupIsMember(isMember) );    // Add members of m to g    mships.addAll( this._addHasMembersToGroup(hasMembers) );     // Add members of m to where g is a member if f == "members"    mships.addAll( this._addHasMembersToWhereGroupIsMember(isMember, hasMembers) );    Set results = this._resetObjects(mships);    GrouperLog.debug(LOG, this.s, this.msg + " total: " + results.size());    return results;  } // private Set _calculate()