class DurationUnitsProvider extends AbstractUnitsProvider<Duration> {

    @Override
    public <T extends Duration> T fromUnitsAndMagnitude(Class<T> type, Number magnitude) throws InvalidUnitsException
    {
        return Duration.create(type, new BigDecimal(magnitude.toString()));
    }

    public  DurationUnitsProvider();

}