HHH-9145 Use JDBC Wrapper API for type checks

Use java.sql.Wrapper.isWrapperFor instead of instanceof keyword for type check verifications.  Included appropriate error handling and fallback conditions for drivers that may not implement the JDBC 4 specification.