if (mapConnection != null) {
mapConnection.commit();
mapConnection.close();
mapConnection = null;
File tempDBFile = new File(workingDir, getTempMapDBFileName());
<BUG>if (dialect.databaseFileExists(tempDBFile) && deleteDatabaseIndexes) {

dialect.removeDatabase(tempDBFile);
</BUG>
}

if (mapConnection != null) {
mapConnection.commit();
mapConnection.close();
mapConnection = null;
File tempDBFile = new File(workingDir, getTempMapDBFileName());
if (mapDBDialect.databaseFileExists(tempDBFile) && deleteDatabaseIndexes) {
mapDBDialect.removeDatabase(tempDBFile);
