}
};
@Override
protected DriverWrapper newDriverWrapper(final ThreadContext context, final String driver) {
DriverWrapper driverWrapper = super.newDriverWrapper(context, driver);
final java.sql.Driver jdbcDriver = driverWrapper.getDriverInstance();
if ( jdbcDriver.getClass().getName().startsWith("org.postgresql.") ) {
try { // public static String getVersion()
final String version = (String) // "PostgreSQL 9.2 JDBC4 (build 1002)"
jdbcDriver.getClass().getMethod("getVersion").invoke(null);
if ( version != null && version.indexOf("JDBC3") >= 0 ) {