TransactionManager transact = pool.getTransactionManager();
Txn transaction = transact.beginTransaction();
broker = pool.get(pool.getSecurityManager().getSystemSubject());
Collection root = broker.getOrCreateCollection(transaction, TEST_COLLECTION_URI);
broker.saveCollection(transaction, root);
IndexInfo info = root.validateXMLResource(transaction, broker, XmldbURI.create("test.xml"), TEST_DOC);
root.store(transaction, broker, info, TEST_DOC, false);
transact.commit(transaction);