// after being loaded in when we created new database above.
// We should really deal with the target path separately, e.g. via extra text field
XMLDocumentImportReader reader = new XMLDocumentImportReader(resource,
database.schema(),
path, user, false, false);
ImportHandler importHandler = database.createImportHandler(con);
reader.setImportHandler(importHandler);
reader.start();
}
} catch (java.sql.SQLException sqlException) {
con.rollback();