code: private String translateTo2BitCrid(Map cuData, String id, String defVal) {
          String crid = getValueOr(cuData, id, "");
          if (!crid.equals("")) {
              return DssatCRIDHelper.get2BitCrid(crid);
          } else {
              return defVal;
          }
      }
docs: Try to translate 3-bit CRID to 2-bit version stored in the map
  
  @param cuData the cultivar data record
  @param id the field id for contain crop id info
  @param defVal the default value when id is not available
  @return 2-bit crop ID