Map<String, String> bookmarks = BookmarkStore.getInstance().getBookmarks();
SystemLinksBuilder entryLinksBuilder = linkBuilders.createSystemLinksBuilder();
for (String key : bookmarks.keySet()) {
// set the sub-resource state of the builder for this entry
entryLinksBuilder.subResource(key);
SyndEntry entry = createEntry(key, bookmarks.get(key), entryLinksBuilder, null);
feed.addEntry(entry);
}
// generate collection links in the response
linkBuilders.createSystemLinksBuilder().build(feed.getLinks());