System.err.println(e); System.exit(1);
throw new RuntimeException(e);
  protected static List grouperList(                          Session session, String gkey,                          String  mkey,    String gfield,                          String  via                        )  {    List    vals        = new ArrayList();    String  gfield_txt  = nullOrVal(gfield);    String  gkey_txt    = nullOrVal(gkey);    String  mkey_txt    = nullOrVal(mkey);    String  via_txt     = "";    if (via != null) {      if        (via.equals(Grouper.MEM_ALL)) {                // Already set via_txt is fine      } else if (via.equals(Grouper.MEM_EFF)) {        // We want a value        via_txt = " AND gl.via IS NOT NULL";      } else if (via.equals(Grouper.MEM_IMM)) {        // We don't want a value        via_txt = " AND gl.via IS NULL";      } else {        via_txt = " AND gl.via" + nullOrVal(via);      }    }    try {      Query q = session.createQuery(        "FROM GrouperList AS gl"      +        " WHERE "                     +        "gl.groupKey"   + gkey_txt    +        " AND "                       +        "gl.memberKey"  + mkey_txt    +        " AND "                       +        "gl.groupField" + gfield_txt  +        via_txt      );      Grouper.log().query("grouperList", q);      vals = q.list();    } catch (HibernateException e) {      System.err.println(e);      System.exit(1);    }    return vals;  }