code: private static MonetaryFormatsSingletonSpi loadMonetaryFormatsSingletonSpi() {
          try {
              return Optional.ofNullable(Bootstrap.getService(MonetaryFormatsSingletonSpi.class))
                      .orElseGet(DefaultMonetaryFormatsSingletonSpi::new);
          } catch (Exception e) {
              Logger.getLogger(MonetaryFormats.class.getName())
                      .log(Level.WARNING, "Failed to load MonetaryFormatsSingletonSpi, using default.", e);
              return new DefaultMonetaryFormatsSingletonSpi();
          }
      }
docs: Loads the SPI backing bean.
  
  @return the instance of MonetaryFormatsSingletonSpi to be used by this singleton.