public void store() throws PermissionDeniedException, IOException, TriggerException, EXistException, SAXException, LockException, AuthenticationException {
BrokerPool pool = null;
DBBroker broker = null;
try {
pool = BrokerPool.getInstance();
Subject admin = pool.getSecurityManager().authenticate("admin", "");
broker = pool.get(admin);
Collection collection = broker.getOrCreateCollection(null, TestConstants.TEST_COLLECTION_URI);
IndexInfo info = collection.validateXMLResource(null, broker, TestConstants.TEST_XML_URI, XML);
//TODO : unlock the collection here ?
collection.store(null, broker, info, XML, false);