[#3718] Use reflection to support also JDBC 4.0