List<FeedEntryDTO> entries = new ArrayList<FeedEntryDTO>();
if (feedURL.equals("http://foo")) {
FeedEntry feOne = new FeedEntry();
feOne.setTitle("One");
feOne.setPublishedDate(new Date());
FeedEntry feTwo = new FeedEntry();
feTwo.setTitle("Two");
feTwo.setPublishedDate(new Date());
Feed feed = new Feed();
feed.setTitle("Foo");
feed.getFeedEntries().add(feOne);
feed.getFeedEntries().add(feTwo);
entries.add(new FeedEntryDTO(feed, feOne));
entries.add(new FeedEntryDTO(feed, feTwo));
} else if (feedURL.equals("http://bar")) {
FeedEntry feOne = new FeedEntry();
feOne.setTitle("One");
feOne.setPublishedDate(new Date());
Feed feed = new Feed();
feed.setTitle("Bar");
feed.getFeedEntries().add(feOne);