public Feed getPackagesAsFeed() {
Factory factory = Abdera.getNewFactory();
Feed f = factory.getAbdera().newFeed();
f.setTitle("Packages");
f.setBaseUri(uriInfo.getBaseUriBuilder().path("packages").build().toString());
PackageIterator iter = repository.listPackages();
while (iter.hasNext()) {
PackageItem item = iter.next();
Entry e = factory.getAbdera().newEntry();
e.setTitle(item.getName());
Link l = factory.newLink();
l.setHref(uriInfo.getBaseUriBuilder().path("packages")
.path(item.getName()).build().toString());