assertNotNull(transact);
transaction = transact.beginTransaction();
assertNotNull(transaction);
System.out.println("Transaction started ...");
Collection root = broker.getOrCreateCollection(transaction, col1uri);
assertNotNull(root);
broker.saveCollection(transaction, root);
CollectionConfigurationManager mgr = pool.getConfigurationManager();
mgr.addConfiguration(transaction, broker, root, COLLECTION_CONFIG);
System.out.println("store "+doc01uri);
IndexInfo info = root.validateXMLResource(transaction, broker, doc01uri.lastSegment(), XML1);
assertNotNull(info);
root.store(transaction, broker, info, XML1, false);
System.out.println("store "+doc02uri);
info = root.validateXMLResource(transaction, broker, doc02uri.lastSegment(), XML2);
assertNotNull(info);
root.store(transaction, broker, info, XML2, false);
System.out.println("store "+doc03uri);
info = root.validateXMLResource(transaction, broker, doc03uri.lastSegment(), XML3);
assertNotNull(info);
root.store(transaction, broker, info, XML3, false);
System.out.println("store "+doc11uri);
root.addBinaryResource(transaction, broker, doc11uri.lastSegment(), BINARY.getBytes(), null);
transact.commit(transaction);
} catch (Exception e) {
e.printStackTrace();
transact.abort(transaction);