ProfileService profile = (ProfileService) moduleContext.locateService(mProfileService);
if (profile == null) {
throw new JspException("Profile [" + mProfileService + "] not found in current module context");
}
AccountService service = (AccountService) moduleContext.locateService(mAccountService);
if (service == null) {
throw new JspException("Service [" + mAccountService + "] not found in current module context");
}
List summaries;
try {
AccountReport accountReport = service.getAccountReport(profile.getId());
pageContext.setAttribute("StockSummaries", accountReport.getStockSummaries());
summaries = accountReport.getAccountSummaries();
} catch (Exception e) {
throw new JspException(e);
}