mof.effDeletes.addAll( Membership.getPersistent(s, mof._evalImmediate()) );
Iterator iter = MembershipFinder.findAllChildrenNoSessionNoPriv(ms).iterator(); while (iter.hasNext()) { Membership child = (Membership) iter.next(); child.setSession(s); mof.effDeletes.add(child); }  iter = MembershipFinder.findAllViaNoSessionNoPriv(ms).iterator(); while (iter.hasNext()) { Membership eff = (Membership) iter.next(); eff.setSession(s); mof.effDeletes.add(eff); }
  protected static MemberOf delImmediate(    GrouperSession s, Owner o, Membership ms, Member m  )    throws  GroupNotFoundException,   // TODO            HibernateException,            MemberNotFoundException,  // TODO            MembershipNotFoundException  {    MemberOf  mof = new MemberOf(s, o, m, ms);    // TODO This seems overly complicated.  Why don't I just query for    //      the appropriate members?    mof.effDeletes.addAll( Membership.getPersistent(s, mof._evalImmediate()) );    mof.deletes.addAll(mof.effDeletes);    mof.deletes.add(ms);    mof._resetSessions();    mof.o.setModified();    mof.deletes.add(ms);    // Delete the immediate    mof.saves.add(mof.o);   // Update the owner    return mof;  } // protected static MemberOf delImmediate(s, o, m, ms)