private Constructor<?> getConnectionConstructor() {
            this.plugin.getDependencyManager().loadDependencies(Collections.singleton(Dependency.H2_DRIVER_LEGACY));
            ClassLoader classLoader = this.plugin.getDependencyManager().obtainClassLoaderWith(EnumSet.of(Dependency.H2_DRIVER_LEGACY));
            try {
                Class<?> connectionClass = classLoader.loadClass("org.h2.jdbc.JdbcConnection");
                return connectionClass.getConstructor(String.class, Properties.class);
            } catch (ReflectiveOperationException e) {
                throw new RuntimeException(e);
            }
        }
Migrates the old (version 1) H2 database to version 2.

See <a href="http://www.h2database.com/html/migration-to-v2.html">here</a> for more info.
common/src/main/java/me/lucko/luckperms/common/storage/implementation/sql/connection/file/H2ConnectionFactory.java