static public class CollectionResource {
@GET
@Produces(MediaType.APPLICATION_ATOM_XML)
public SyndFeed getCollection(@Context LinkBuilders linkBuilders, @Context UriInfo uriInfo) {
SyndFeed feed = new SyndFeed(new SyndText("Test"), "test:1", new Date());
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());