code: public static BasicAmountType getAmountForCurrency(final String currencyCodeName, final int amountInCents) {
  
  		// We use the smallest existing currency unit for each currency,
  		// so we need to calculate a divisor that can be used to transform
  		// the value into the correct base used by PayPal..
  
  		final Currency currency                          = Currency.getInstance(currencyCodeName);
  		final CurrencyCodeType currencyCode              = CurrencyCodeType.fromValue(currency.getCurrencyCode());
  		final double divisor                             = Math.pow(10, currency.getDefaultFractionDigits());
  		final double calculatedAmount                    = ((double)amountInCents / divisor);
  
  		return new BasicAmountType(currencyCode, Double.toString(calculatedAmount));
  
  	}
docs: ----- private methods -----