public Feed getAssetsAsAtom(@PathParam("categoryPath") String categoryPath) {
Factory factory = Abdera.getNewFactory();
Feed f = factory.getAbdera().newFeed();
UriBuilder builder = uriInfo.getAbsolutePathBuilder();
f.setTitle(categoryPath);
AssetItemPageResult result = repository.findAssetsByCategory(
categoryPath, 0, pageSize);
List<AssetItem> assets = result.assets;
for (AssetItem item : assets) {
Entry e = toAssetEntryAbdera(item, uriInfo);
f.addEntry(e);