public SyndFeed getActivityFeed(final ActivityRequest activityRequest)
{
final SyndFeedImpl feed = new SyndFeedImpl();
feed.setUri("refimpl");
feed.setTitle("Reference Implementation Feed");
feed.setPublishedDate(new Date());
final List<SyndEntry> entries = new ArrayList<SyndEntry>();
entries.add(buildEntry(createEntry("http://example.com/1", "did something", "This is a comment.", "saying",
new Date(), "fred").setIcon(applicationProperties.getBaseUrl() +
"/download/resources/com.atlassian.streams.refimpl/itemicon")));
entries.add(buildEntry(createEntry("http://example.com/2", "did something else", null, null,
new Date(), "barney").setReplyTo(
applicationProperties.getBaseUrl() + "/plugins/servlet/streamscomments/2")));
entries.add(buildEntry(createEntry("http://example.com/3", "commented on something", "I can comment on stuff", "saying",
new Date(), "fred").setInReplyTo("http://example.com/2").setCategory("comment")));
entries.add(buildEntry(createEntry("http://example.com/4", "commented on something", "I can comment on stuff too",
"saying",
new Date(), "admin").setInReplyTo("http://example.com/2").setCategory("comment").setReplyTo(
applicationProperties.getBaseUrl() + "/plugins/servlet/streamscomments/4")));
feed.setEntries(entries.subList(0, Math.min(entries.size(), activityRequest.getMaxResults())));
return feed;
}