System.err.println("Invalid via requirement: " + via); System.exit(1);
throw new RuntimeException("Invalid via requirement: " + via);
  private static List _listVals(                                Session session, GrouperGroup g,                                 GrouperMember m, String list, String via                               )   {    // Well isn't this an ugly hack...    String gkey_param = null;    if (g != null) {      gkey_param = g.key();    } else {      gkey_param = GrouperBackend.VAL_NOTNULL;    }    String mkey_param = null;    if (m != null) {      mkey_param = m.key();    } else {      mkey_param = GrouperBackend.VAL_NOTNULL;    }    String via_param  = null;    if (!via.equals(Grouper.MEM_ALL)) {      if        (via.equals(Grouper.MEM_EFF)) {        via_param = GrouperBackend.VAL_NOTNULL;      } else if (via.equals(Grouper.MEM_IMM)) {        via_param = GrouperBackend.VAL_NULL;      } else {        System.err.println("Invalid via requirement: " + via);        System.exit(1);      }    }    return GBQuery.grouperList(             session, gkey_param, mkey_param, list, via_param           );  }