code: public static boolean isAvailable(MonetaryAmountFactoryQuery query) {
          return Optional.ofNullable(monetaryAmountsSingletonQuerySpi()).orElseThrow(() -> new MonetaryException(
                  "No MonetaryAmountsSingletonQuerySpi loaded, query functionality is not available."))
                  .isAvailable(query);
      }
docs: Allows to check if any of the <i>get</i>XXX methods return non empty/non null results of {@link javax.money
  .MonetaryAmountFactory}.
  
  @param query the factory query, not null.
  @return true, if at least one {@link MonetaryAmountFactory} matches the query.