String existHome = System.getProperty("exist.home");
File existDir = existHome==null ? new File(".") : new File(existHome);
File f = new File(existDir,"samples/shakespeare/r_and_j.xml");
assertNotNull(f);
IndexInfo info = test2.validateXMLResource(transaction, broker, XmldbURI.create("new_test2.xml"),
new InputSource(f.toURI().toASCIIString()));
test2.store(transaction, broker, info, new InputSource(f.toURI()
.toASCIIString()), false);
transact.commit(transaction);