if (uri != null || res.inputSource!=null) {
collection.store(txn, broker, info, (uri!=null) ? new InputSource(uri):res.inputSource, false);
} else if (res.root != null) {
collection.store(txn, broker, info, res.root, false);
} else {
collection.store(txn, broker, info, res.content, false);
}
//Notice : the document should now have its update lock released
transact.commit(txn);
collection.deleteObservers();