code: @Override public Duration getDuration(String name)
     {
        String value = getString(name);
        if (value == null || value.isEmpty())
        {
           throw new IllegalArgumentException("Unexpected duration value");
        }
  
        String[] items = value.split(",");
        if (items.length != 3)
        {
           throw new IllegalArgumentException("Unexpected duration value: " + value);
        }
  
        String item = DatatypeConverter.parseString(items[2]);
        Number durationValue;
  
        try
        {
           durationValue = DatatypeConverter.parseDouble(item);
        }
  
        catch (ParseException ex)
        {
           throw new IllegalArgumentException("Unexpected duration value", ex);
        }
  
        return Duration.getInstance(NumberHelper.getDouble(durationValue), TimeUnit.HOURS);
     }
docs: {@inheritDoc}