TransactionManager txManager = db.getTransactionManager();
Txn txn = null;
try {
MimeType mime = getMimeTable().getContentTypeFor( file.getName() );
if (mime != null && mime.isXMLType()) {
txn = txManager.beginTransaction();
IndexInfo info = col.validateXMLResource(txn, broker,
XmldbURI.create(file.getName()),
new InputSource(new FileInputStream(file))
);