Query q = dbSess.session().getNamedQuery(qry);
Query q = Grouper.dbSess().session().getNamedQuery(qry);
  public Subject getSubject(SubjectType type, String id) {    DbSess  dbSess  = new DbSess(); // FIXME CACHE!    String  qry     = "SubjectImpl.by.subjectid.and.typeid";    Subject subj    = null;    try {      Query q = dbSess.session().getNamedQuery(qry);      q.setString(0, id);      q.setString(1, type.getId());      try {        List vals = q.list();        if (vals.size() == 1) {          subj = (Subject) 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                );    }    dbSess.stop();    return subj;  }