} catch (Exception e) {
} catch (Exception e) { e.printStackTrace();
    public void testStore() {        BrokerPool.FORCE_CORRUPTION = true;        BrokerPool pool = null;                DBBroker broker = null;        try {        	pool = startDB();        	assertNotNull(pool);            broker = pool.get(SecurityManager.SYSTEM_USER);            assertNotNull(broker);                        TransactionManager transact = pool.getTransactionManager();            assertNotNull(transact);            Txn transaction = transact.beginTransaction();            assertNotNull(transaction);                        System.out.println("Transaction started ...");                        Collection root = broker.getOrCreateCollection(transaction, TestConstants.TEST_COLLECTION_URI);            assertNotNull(root);            broker.saveCollection(transaction, root);                        Collection test2 = broker.getOrCreateCollection(transaction, TestConstants.TEST_COLLECTION_URI2);            assertNotNull(test2);            broker.saveCollection(transaction, test2);                                    File files[] = dir.listFiles();            assertNotNull(files);                        File f;            IndexInfo info;                        // store some documents.            for (int i = 0; i < files.length && i < 5000; i++) {                f = files[i];                assertNotNull(f);                try {                    info = test2.validateXMLResource(transaction, broker, XmldbURI.create(f.getName()), new InputSource(f.toURI().toASCIIString()));                    assertNotNull(info);                    test2.store(transaction, broker, info, new InputSource(f.toURI().toASCIIString()), false);                } catch (SAXException e) {                	//TODO : why store invalid documents ?                    System.err.println("Error found while parsing document: " + f.getName() + ": " + e.getMessage());                }            }                        transact.commit(transaction);            System.out.println("Transaction commited ...");	    } catch (Exception e) {            	        fail(e.getMessage());                     } finally {            pool.release(broker);        }    }