try {
if (createdb) {
conn = mgr.connectToCreate();
conn.setAutoCommit( true );
} else {
conn = mgr.newConnection( true ); // set autoCommit to true
}
// Check if store exist
boolean continueOnError = false;
int status = mgr.checkStoreExists( conn );