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     = "Group.by.id";    Subject subj    = null;    try {      Query q = dbSess.session().getNamedQuery(qry);      q.setString(0, id);      try {        // Find the group        Group g = (Group) q.uniqueResult();        if (g != null) {          // ... And convert it to a subject object          subj = new SubjectImpl(id, type.getId());        }      } 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;  }