final Class<? extends Driver> driverClass = classLoader.loadClass(driverName).asSubclass(Driver.class);
final Constructor<? extends Driver> constructor = driverClass.getConstructor();
final Driver driver = constructor.newInstance();
final int majorVersion = driver.getMajorVersion();
final int minorVersion = driver.getMinorVersion();
final boolean compliant = driver.jdbcCompliant();
if (compliant) {
log.infof("Deploying JDBC-compliant driver %s (version %d.%d)", driverClass,
Integer.valueOf(majorVersion), Integer.valueOf(minorVersion));
} else {
log.infof("Deploying non-JDBC-compliant driver %s (version %d.%d)", driverClass,