code: public CurrencyUnit getCurrency(Locale country, String... providers) {
          Collection<CurrencyUnit> found =
                  getCurrencies(CurrencyQueryBuilder.of().setCountries(country).setProviderNames(providers).build());
          if (found.isEmpty()) {
              throw new MonetaryException("No currency unit found for locale: " + country);
          }
          if (found.size() > 1) {
              throw new MonetaryException("Ambiguous CurrencyUnit for locale: " + country + ": " + found);
          }
          return found.iterator().next();
      }
docs: Access a new instance based on the currency code. Currencies are
  available as provided by {@link javax.money.spi.CurrencyProviderSpi} instances registered
  with the {@link javax.money.spi.Bootstrap}.
  
  @param country   the ISO currency's country, not {@code null}.
  @param providers the (optional) specification of providers to consider. If not set (empty) the providers
  as defined by #getDefaultRoundingProviderChain() should be used.
  @return the corresponding {@link javax.money.CurrencyUnit} instance.
  @throws javax.money.UnknownCurrencyException if no such currency exists.