@SuppressWarnings({ "static-access", "unchecked" })
    protected void determineDriverVersion() {
        try {
// Locate the Derby sysinfo class and query its version info
            Enumeration<Driver> it = DriverManager.getDrivers();
            while (it.hasMoreElements()) {
                Driver driver = it.nextElement();
                if (driver.getClass().getName().contains("derby")) {
                    driverVersionMajor = driver.getMajorVersion();
                    driverVersionMinor = driver.getMinorVersion();
                    return;
                }
            }
//            log.debug("Unable to load/access Apache Derby driver class " + "to check version");
            driverVersionMajor = 10;
            driverVersionMinor = 6;
        } catch (Exception e) {
//            log.debug("Unable to load/access Apache Derby driver class " + "org.apache.derby.tools.sysinfo to check version: " + e.getMessage());
            driverVersionMajor = 10;
            driverVersionMinor = 6;
        }
    }
@SuppressWarnings({ "static-access", "unchecked" })
    protected void determineDriverVersion() {
        try {

            Enumeration<Driver> it = DriverManager.getDrivers();
            while (it.hasMoreElements()) {
                Driver driver = it.nextElement();
                if (driver.getClass().getName().contains("derby")) {
                    driverVersionMajor = driver.getMajorVersion();
                    driverVersionMinor = driver.getMinorVersion();
                    return;
                }
            }

            driverVersionMajor = 10;
            driverVersionMinor = 6;
        } catch (Exception e) {

            driverVersionMajor = 10;
            driverVersionMinor = 6;
        }
    }
@ SuppressWarnings ( { "static-access" , "unchecked" } ) protected void determineDriverVersion ( ) { try { // Locate the Derby sysinfo class and query its version info Enumeration < Driver > it = DriverManager . getDrivers ( ) ; while ( it . hasMoreElements ( ) ) { Driver driver = it . nextElement ( ) ; if ( driver . getClass ( ) . getName ( ) . contains ( "derby" ) ) { driverVersionMajor = driver . getMajorVersion ( ) ; driverVersionMinor = driver . getMinorVersion ( ) ; return ; } } //            log.debug("Unable to load/access Apache Derby driver class " + "to check version"); driverVersionMajor = 10 ; driverVersionMinor = 6 ; } catch ( Exception e ) { //            log.debug("Unable to load/access Apache Derby driver class " + "org.apache.derby.tools.sysinfo to check version: " + e.getMessage()); driverVersionMajor = 10 ; driverVersionMinor = 6 ; } }
Determine Apache Derby driver major/minor version.
Determine Apache Derby driver major / minor version .