Iterator    iter    = l.iterator();
Iterator    iter    = c.iterator();
  private static Set _filterMemberships(GrouperSession s, Field f, List l) {    GrouperSession.validate(s);    Set         mships  = new LinkedHashSet();    Membership  ms;    Iterator    iter    = l.iterator();    while (iter.hasNext()) {      ms = (Membership) iter.next();      ms.setSession(s);      try {        if (f.getType().equals(FieldType.NAMING)) {          PrivilegeResolver.getInstance().canPrivDispatch(            s, ms.getStem(), s.getSubject(), f.getReadPriv()          );        }        else {          PrivilegeResolver.getInstance().canPrivDispatch(            s, ms.getGroup(), s.getSubject(), f.getReadPriv()          );        }        mships.add(ms);      }      catch (Exception e) {        // @exception GroupNotFoundException        // @exception InsufficientPrivilegeException        // @exception SchemaException        // @exception StemNotFoundException        // ignore      }    }    return mships;  } // private static Set _filterMemberships(s, f, l)