code: public static boolean isAvailable(AmountFormatQuery formatQuery) {
          return Optional.ofNullable(getMonetaryFormatsSpi()).orElseThrow(() -> new MonetaryException(
                  "No MonetaryFormatsSingletonSpi " + "loaded, query functionality is not available."))
                  .isAvailable(formatQuery);
      }
docs: Checks if a {@link MonetaryAmountFormat} is available for the given {@link javax.money.format.AmountFormatQuery}.
  
  @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 true, if a corresponding {@link MonetaryAmountFormat} is accessible.