UserDetails user = UserDetails.findCurrentUser();
String currency = "EUR";
Investment investment = Investment.findInvestment(id);
Set<InvestmentPrice> prices = new TreeSet<InvestmentPrice>();
Set<InvestmentPrice> datedPrices = new TreeSet<InvestmentPrice>();
if (investment.belongsTo(user)) {
if (investment.getLocale() != null) {
Locale locale = investment.getLocale();
Currency investmentCurrency = Currency.getInstance(locale);
currency = investmentCurrency.getCurrencyCode();
}