Map<String, StockQuote> stockInfo = stockQuoteService.getQuotes((String[]) ownedStr.toArray(new String[owned.size()]));
for (StockSummary stock : stocks) {
String symbol = stock.getSymbol();
StockQuote stockquote = stockInfo.get(symbol);
if (stockquote == null) {
stock.setCurrentPrice(Float.NaN);
stock.setCompany("*not found*");
stock.setHighPrice(Float.NaN);
stock.setLowPrice(Float.NaN);
} else {
stock.setCurrentPrice(fromUSDollarToCurrency(convertToFloat(stockquote.getStockQuote())));
stock.setCompany(stockquote.getCompanyName());
stock.setHighPrice(fromUSDollarToCurrency(convertToFloat(stockquote.getDayHighPrice())));
stock.setLowPrice(fromUSDollarToCurrency(convertToFloat(stockquote.getDayLowPrice())));
}
}
return accountReport;
}