code: public static String getParameter(DbConn cnx, String key, String defaultValue)
      {
          try
          {
              return cnx.runSelectSingle("globalprm_select_by_key", 3, String.class, key);
          }
          catch (NoResultException e)
          {
              return defaultValue;
          }
      }
docs: Retrieve the value of a single-valued parameter.
  
  @param key
  @param defaultValue
  @param cnx