SyndFeedInput input = new SyndFeedInput();
SyndFeed syndFeed = input.build(new XmlReader(feedSource));
log.debug("starting conversion from feed URL: " + feedURL);
Feed feed = convertSyndFeed(syndFeed);
for (Object o : syndFeed.getEntries()) {
SyndEntry syndEntry = (SyndEntry)o;
FeedEntry fe = convertSyndEntry(syndEntry);
// Append some information on the title
fe.setTitlePrefix("(" + feed.getTitle() + ") ");
//fe.setTitleSuffix(" (" + fe.getAuthor() + ")");
// Linking it in our model makes it persistable/cachable
feed.getFeedEntries().add(fe);
// Now project them so the client has a unified view without iterating collections of Feeds
FeedEntryDTO dto = new FeedEntryDTO(feed, fe);
feedEntryDTOs.add(dto);
}