code: public static MonetaryAmountFormat getAmountFormat(AmountFormatQuery formatQuery) {
          return Optional.ofNullable(getMonetaryFormatsSpi()).orElseThrow(() -> new MonetaryException(
                  "No MonetaryFormatsSingletonSpi " + "loaded, query functionality is not available."))
                  .getAmountFormat(formatQuery);
      }
docs: Access the default {@link MonetaryAmountFormat} given a {@link Locale}.
  
  @param formatQuery the required {@link AmountFormatQuery}, not {@code null}. If the query does not define
  any explicit provider chain, the providers as defined by #getDefaultCurrencyProviderChain()
  are used.
  @return the matching {@link MonetaryAmountFormat}
  @throws MonetaryException if no registered {@link MonetaryAmountFormatProviderSpi} can provide a
  corresponding {@link MonetaryAmountFormat} instance.