code: @Override
      public Class<? extends MonetaryAmount> getDefaultAmountType() {
          if (configuredDefaultAmountType==null) {
              for (MonetaryAmountFactoryProviderSpi<?> f : Bootstrap.getServices(MonetaryAmountFactoryProviderSpi.class)) {
                  if (f.getQueryInclusionPolicy() == MonetaryAmountFactoryProviderSpi.QueryInclusionPolicy.ALWAYS) {
                      configuredDefaultAmountType = f.getAmountType();
                      break;
                  }
              }
          }
          if(configuredDefaultAmountType==null){
              throw new MonetaryException("No MonetaryAmountFactoryProviderSpi registered.");
          }
          return configuredDefaultAmountType;
      }
docs: /*
  (non-Javadoc)
  
  @see org.javamoney.bp.api.spi.MonetaryAmountsSpi#getDefaultAmountType()