* @throws ServiceException If the service is unable to handle the request.
*/
private static void queryPositionFeed(FinanceService service, String feedUrl)
throws IOException, MalformedURLException, ServiceException {
System.out.println("Requesting Feed at location " + feedUrl);
PositionFeed positionFeed = service.getFeed(new URL(feedUrl), PositionFeed.class);
System.out.println("\nPosition Feed\n=============");
printBasicFeedDetails(positionFeed);
for (int i = 0; i < positionFeed.getEntries().size(); i++) {
PositionEntry positionEntry = positionFeed.getEntries().get(i);
printPositionEntry(positionEntry);
}
}