code: public static final TimeUnit parseDurationTimeUnits(BigInteger value, TimeUnit defaultValue)
     {
        TimeUnit result = defaultValue;
  
        if (value != null)
        {
           switch (value.intValue())
           {
              case 3:
              case 35:
              {
                 result = TimeUnit.MINUTES;
                 break;
              }
  
              case 4:
              case 36:
              {
                 result = TimeUnit.ELAPSED_MINUTES;
                 break;
              }
  
              case 5:
              case 37:
              {
                 result = TimeUnit.HOURS;
                 break;
              }
  
              case 6:
              case 38:
              {
                 result = TimeUnit.ELAPSED_HOURS;
                 break;
              }
  
              case 7:
              case 39:
              case 53:
              {
                 result = TimeUnit.DAYS;
                 break;
              }
  
              case 8:
              case 40:
              {
                 result = TimeUnit.ELAPSED_DAYS;
                 break;
              }
  
              case 9:
              case 41:
              {
                 result = TimeUnit.WEEKS;
                 break;
              }
  
              case 10:
              case 42:
              {
                 result = TimeUnit.ELAPSED_WEEKS;
                 break;
              }
  
              case 11:
              case 43:
              {
                 result = TimeUnit.MONTHS;
                 break;
              }
  
              case 12:
              case 44:
              {
                 result = TimeUnit.ELAPSED_MONTHS;
                 break;
              }
  
              case 19:
              case 51:
              {
                 result = TimeUnit.PERCENT;
                 break;
              }
  
              case 20:
              case 52:
              {
                 result = TimeUnit.ELAPSED_PERCENT;
                 break;
              }
  
              default:
              {
                 result = PARENT_FILE.get().getProjectProperties().getDefaultDurationUnits();
                 break;
              }
           }
        }
  
        return (result);
     }
docs: Parse duration time units.
  
  Note that we don't differentiate between confirmed and unconfirmed
  durations. Unrecognised duration types are default the supplied default value.
  
  @param value BigInteger value
  @param defaultValue if value is null, use this value as the result
  @return Duration units