String qry = "Group.by.stem.and.extn.and.type";
String qry = "Group.key.by.stem.and.extn.and.type";
  protected static String findKey(                            GrouperSession s, String stem,                             String extn, String type                          )   {    String qry = "Group.by.stem.and.extn.and.type";    String key = null;    try {      Query q = s.dbSess().session().getNamedQuery(qry);      q.setString(0, stem);      q.setString(1, extn);      q.setString(2, type);      try {        key = (String) q.uniqueResult();      } catch (HibernateException e) {        throw new RuntimeException(                    "Error retrieving result for " + qry + ": " + e                  );      }    } catch (HibernateException e) {      throw new RuntimeException(                  "Unable to get query " + qry + ": " + e                );    }    return key;  }