feed.setBase(uriInfo.getBaseUri().toString());
SyndEntry entry = new SyndEntry(new SyndText("Test"), "test:1", new Date());
URI requestUri = uriInfo.getAbsolutePath();
entry.setContent(new SyndContent(requestUri + "/csv", "text/csv", true));
feed.addEntry(entry);
linkBuilders.createSystemLinksBuilder().relativize(false).build(feed.getLinks());
linkBuilders.createSystemLinksBuilder().relativize(false)
.resource(DocumentResource.class).build(entry.getLinks());