chains.add( load(s, mv.getChainKey()) );
chains.add( MemberVia.load(s, mv.getChainKey()) );
  private static List _findChains(GrouperSession s, String listKey) {    List    chains  = new ArrayList();    String  qry     = "MemberVia.by.list.and.first";    try {      Query q = s.dbSess().session().getNamedQuery(qry);      q.setString(0, listKey);       try {        Iterator iter = q.list().iterator();        while (iter.hasNext()) {          MemberVia mv = (MemberVia) iter.next();          chains.add( load(s, mv.getChainKey()) );        }      } catch (HibernateException e) {        throw new RuntimeException(                    "Error retrieving results for " + qry + ": " + e                  );      }    } catch (HibernateException e) {      throw new RuntimeException(                  "Unable to get query " + qry + ": " + e                );    }    return chains;  }