code: public static CurrencyUnit of(Currency currency) {
          MoneyUtils.checkNotNull(currency, "Currency must not be null");
          return of(currency.getCurrencyCode());
      }
docs: Obtains an instance of {@code CurrencyUnit} matching the specified JDK currency.
  <p>
  This converts the JDK currency instance to a currency unit using the code.
  
  @param currency  the currency, not null
  @return the singleton instance, never null
  @throws IllegalCurrencyException if the currency is unknown