private void registerJdbiRepositoryFactoryBean(BeanDefinitionRegistry registry, JdbiRepository annotation, String annotatedClass) {
        Class<?> clazz = ClassUtils.resolveClassName(annotatedClass, null);
        String jdbiQualifier = StringUtils.hasText(annotation.jdbiQualifier()) ? annotation.jdbiQualifier() : null;
        String value = annotation.value();

        RootBeanDefinition beanDefinition = new RootBeanDefinition(JdbiRepositoryFactoryBean.class);
        beanDefinition.setTargetType(clazz);
        beanDefinition.getPropertyValues().add("objectType", clazz).add("jdbiQualifier", jdbiQualifier);
        beanDefinition.validate();

        String beanName = StringUtils.hasText(value) ? value : annotatedClass;
        registry.registerBeanDefinition(beanName, beanDefinition);
    }
This bean registers the bean definitions of all repositories.
Interfaces found using the configuration of {@link EnableJdbiRepositories}
and annotated with {@link JdbiRepository} will be registered.

@deprecated Use the {@link org.jdbi.v3.spring} module with Spring 6.x or newer.
spring5/src/main/java/org/jdbi/v3/spring5/JdbiRepositoryRegistrar.java