public static Money of(Number number, CurrencyUnit currency) {
        return new Money(MoneyUtils.getBigDecimal(number), currency);
    }
public static Money of ( Number number , CurrencyUnit currency ) { return new Money ( MoneyUtils . getBigDecimal ( number ) , currency ) ; }
Creates a new instance of {@link Money}, using the default
{@link MonetaryContext}.

@param currency The target currency, not null.
@param number   The numeric part, not null.
@return A new instance of {@link Money}.
@throws ArithmeticException If the number exceeds the capabilities of the default
{@link MonetaryContext} used.