code: public static CurrencyUnit getCurrency(CurrencyQuery query) {
          return Optional.ofNullable(MONETARY_CURRENCIES_SINGLETON_SPI()).orElseThrow(
                  () -> new MonetaryException("No MonetaryCurrenciesSingletonSpi loaded, check your system setup."))
                  .getCurrency(query);
      }
docs: Query all currencies matching the given query.
  
  @param query The {@link javax.money.CurrencyQuery}, not null.
  @return the list of known currencies, never null.