setupParser(collection, res);
info = collection.validateXMLResource(txn, broker, resURI, (uri != null) ? new InputSource(uri) : res.inputSource);
} else if (res.root != null) {
info = collection.validateXMLResource(txn, broker, resURI, res.root);
} else {
info = collection.validateXMLResource(txn, broker, resURI, res.content);
}
//Notice : the document should now have a Lock.WRITE_LOCK update lock
//TODO : check that no exception occurs in order to allow it to be released
info.getDocument().getMetadata().setMimeType(res.getMimeType());
if (res.datecreated != null) {