code: private BigInteger printExtendedAttributeDurationFormat(Object value)
     {
        BigInteger result = null;
        if (value instanceof Duration)
        {
           result = DatatypeConverter.printDurationTimeUnits(((Duration) value).getUnits(), false);
        }
        return (result);
     }
docs: Converts a duration to duration time units.
  
  @param value duration value
  @return duration time units