if (createDataBase) {
jdbcAdapter.doCreateTables(connection);
}
connection.commit();
} catch (SQLException e) {
throw (AuditorException) new AuditorException("Exception while creating database").initCause(e);
} catch (IOException e) {
throw (AuditorException) new AuditorException("Exception while creating database").initCause(e);
} finally {
close(connection, restoreAutoCommit);
}
this.tccl = Thread.currentThread().getContextClassLoader();
return jdbcAdapter;