GenericFeed feed = service.getFeed(feedUrl, GenericFeed.class);
allEntries.addAll(feed.getEntries());
feedUrl = (feed.getNextLink() == null) ? null : new URL(feed.getNextLink().getHref());
} while (feedUrl != null);
} catch (ServiceException se) {
AppsForYourDomainException ae = AppsForYourDomainException.narrow(se);
throw (ae != null) ? ae : se;
}
return allEntries;
}