Restore Dialect.isValid(Connection) to allow Dialect override for JDBC drivers that don't fully implement JDBC 4.0.