* @throws ServiceException If the service is unable to handle the request.
*/
private static void queryPortfolioFeed(FinanceService service, String feedUrl)
throws IOException, MalformedURLException, ServiceException {
System.out.println("Requesting Feed at location: " + feedUrl);
PortfolioFeed portfolioFeed = service.getFeed(new URL(feedUrl), PortfolioFeed.class);
System.out.println("\nPortfolio Feed\n==============");
printBasicFeedDetails(portfolioFeed);
for (int i = 0; i < portfolioFeed.getEntries().size(); i++) {
PortfolioEntry portfolioEntry = portfolioFeed.getEntries().get(i);
printPortfolioEntry(portfolioEntry);
}
}