class PortfolioService {

	public Portfolio getPortfolio(String userId) {
		/*
		 * Retrieve all orders for accounts id and build portfolio. - for each
		 * order create holding. - for each holding find current price.
		 */
		logger.debug("Getting portfolio for accountId: " + userId);
		List<Order> orders = portfolioRepositoryService.getOrders(userId);
		Portfolio folio = new Portfolio();
		folio.setUserName(userId);
		return createPortfolio(folio, orders);
	}

}