public Optional<ExtensionFactory> findFactory(Class<? extends ExtensionFactory> factoryType) {
        for (ExtensionFactoryDelegate factory : extensionFactories) {
            if (factoryType.isInstance(factory.getDelegatedFactory())) {
                return Optional.of(factory);
            }
        }

        return Optional.empty();
    }
Find the registered factory of the given type. The factory returned from this call
may not be the same instance that was registered with {@link Extensions#register(ExtensionFactory)}.

@param factoryType the factory's type to find
@return the found factory, if any or {@link Optional#empty()} otherwise
core/src/main/java/org/jdbi/v3/core/extension/Extensions.java