@Produces(MediaType.APPLICATION_ATOM_XML)
public Feed getAssetsAsAtom(@PathParam("packageName") String packageName) {
try {
Factory factory = Abdera.getNewFactory();
Feed feed = factory.getAbdera().newFeed();
PackageItem p = repository.loadPackage(packageName);
feed.setTitle(p.getTitle() + "-asset-feed");
Iterator<AssetItem> iter = p.getAssets();
while (iter.hasNext())
feed.addEntry(ToAssetEntryAbdera(iter.next(), uriInfo));
return feed;
} catch (Exception e) {
throw new WebApplicationException(e);