private Function<ConfigRegistry, JdbiConfig<?>> configFactory(Class<? extends JdbiConfig<?>> configClass) {
        return configFactories.computeIfAbsent(configClass, klass -> {
            var handleHolder = JdbiClassUtils.findConstructor(klass, JDBI_CONFIG_TYPES);
            return registry -> {
                var config = handleHolder.invoke(handle -> handle.invokeExact(registry));
                config.setRegistry(registry);
                return config;
            };
        });
    }
Returns this registry's instance of the given config class. Creates an instance on-demand if this registry does
not have one of the given type yet.

@param configClass the config class type.
@param <C>         the config class type.
@return the given config class instance that belongs to this registry.
core/src/main/java/org/jdbi/v3/core/config/ConfigRegistry.java