code: public static String get3BitCrid(String str) {
          if (str != null) {
  //            return LookupCodes.modelLookupCode("DSSAT", "CRID", str).toUpperCase();
              return LookupCodes.lookupCode("CRID", str, "code", "DSSAT").toUpperCase();
          } else {
              return def3BitVal;
          }
  //        if (str == null || !crids.containsValue(str)) {
  //            return def3BitVal;
  //        } else if (str.length() == 3) {
  //            return str;
  //        }
  //        for (String key : crids.keySet()) {
  //            if (str.equals(crids.get(key))) {
  //                return key;
  //            }
  //        }
  //        return str;
      }
docs: get 3-bit version of crop id by given string
  
  @param str input string of 2-bit crop id
  @return 3-bit version of crop id