try {
Document doc = InfosetFactory.getDefaultInfoset().createItemConstructor().createDocument();
Element feed = doc.createDocumentElement(FeedClient.FEED_NAME);
Element title = feed.addElement(FeedClient.TITLE_NAME);
title.addCharacters(target.dir.getName());
Status status = feedClient.create(doc);
if (!status.isSuccess()) {
log.log(Level.SEVERE,"Cannot create feed "+target.feed+" due to error "+status.getCode());
continue;
}
} catch (XMLException ex) {