public static void generate(Storage storage,Feed feed,Reference metaRef,Reference feedRef,String resourceBase,ItemDestination dest)
throws XMLException
{
XMLRepresentationParser xmlParser = new XMLRepresentationParser();
ItemConstructor constructor = InfosetFactory.getDefaultInfoset().createItemConstructor();
dest.send(constructor.createDocument());
dest.send(constructor.createElement(AtomResource.FEED_NAME));
link(constructor,dest,"self",metaRef.toString());
link(constructor,dest,"related",feedRef.toString());
try {
org.atomojo.app.client.Feed feedRep = new org.atomojo.app.client.Feed(xmlParser.load(storage.getFeedHead(feed.getPath(), feed.getUUID())));