docs: public static Record getRecordFromCode(BaseField field, String strDesc, String strFieldName, Record recSecond)
      {
          if ((strDesc == null) || (strDesc.length() == 0))
              return null;
          BaseField fldSecond = null;
          if (strFieldName != null)
              fldSecond = recSecond.getField(strFieldName);
          if (fldSecond == null)
              fldSecond = recSecond.getField("Code");
          if (fldSecond == null)
              return null;
          recSecond.setKeyArea(fldSecond);
          fldSecond.setString(strDesc);
          try {
              if (recSecond.seek(DBConstants.EQUALS))
                  return recSecond;
          } catch (DBException e) {
              e.printStackTrace();
          }
          return null;
      }