code: public static ArrayList<Serializable> getDefaultSourceValues(Connection con, QueryParameter qp) throws Exception {
          ArrayList<Serializable> result = new ArrayList<Serializable>();        
          List<IdName> list = getSelectValues(con, qp.getDefaultSource(), false, QueryParameter.NO_ORDER);
          if (QueryParameter.SINGLE_SELECTION.equals(qp.getSelection())) {
              for (IdName in : list) {
                  result.add(in.getId());
              }
          } else {
              for (IdName in : list) {
                  result.add(in);
              }
          }
          return result;
      }
docs: Get values for a default source
  
  @param con connection
  @param qp  parameter
  @return a list of default values
  @throws Exception if select failes