q.setString(1, subj.getSubjectType().getId());
q.setString(1, subj.getType().getName());
  private static GrouperMember loadByIdAndType(DbSess dbSess, Subject subj) {    GrouperMember m     = null;    String        qry   = "GrouperMember.by.subjectid.and.typeid";    List          vals  = new ArrayList();    try {      Query q = dbSess.session().getNamedQuery(qry);      q.setString(0, subj.getId());      q.setString(1, subj.getSubjectType().getId());      try {        vals = q.list();        if (vals.size() == 1) {          m = (GrouperMember) vals.get(0);        }      } 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 m;  }