// Iterate in reverse order since removeTable() changes the list size.
for (int i = currentDatabase.getTableCount() - 1; i >= 0; i--) {
Table table = currentDatabase.getTable(i);
if(database.findTable(table.getName(), false) == null){
Logger.debug("Keeping existing table %s", table.getName());
currentDatabase.removeTable(i);
}
}
}
if(Logger.isDebugEnabled()){