}
if (definition != null && definition.getIsolationLevel() != IsolationLevel.ISOLATION_DEFAULT) {
LOGGER.debug("Changing isolation level of JDBC Connection [" + con + "] to "
+ definition.getIsolationLevel());
IsolationLevel currentIsolation = IsolationLevel.toIsolationLevel(con.getTransactionIsolation());
if (currentIsolation != definition.getIsolationLevel()) {
con.setTransactionIsolation(definition.getIsolationLevel().toJdbcIsolation());
}
}