private static boolean loadJDBCDriverFromFile(String driverJARFileName) {
        File driverJARFile = new File(driverJARFileName);

        URL oracleJDBCDriverURL;
        try {
            oracleJDBCDriverURL = driverJARFile.toURI().toURL();
        } catch (MalformedURLException ex) {
            return false;
        }

        URLClassLoader classLoader = new URLClassLoader(
                new URL[] { oracleJDBCDriverURL });
        Class<?> driverClass;
        try {
            driverClass = Class.forName(JDBC_DRIVER_CLASS_NAME, true,
                    classLoader);
            oracleJDBCDriver = (Driver) driverClass.newInstance();
        } catch (ClassNotFoundException e) {
            return false;
        } catch (InstantiationException e) {
            return false;
        } catch (IllegalAccessException e) {
            return false;
        }
        return true;
    }