class BeanRegisterUtil {
    public static BeanDefinitionRegistry getRegistry(ConfigurableApplicationContext applicationContext) {
        return (BeanDefinitionRegistry) applicationContext.getBeanFactory();
    }

    public static void registerBean(BeanDefinitionRegistry beanDefinitionRegistry, String beanName, String beanClassName) {<FILL_FUNCTION_BODY>}

    public static void registerBean(BeanDefinitionRegistry beanDefinitionRegistry, String beanName, Class<?> beanClass) {
        BeanDefinitionBuilder beanDefinitionBuilder = BeanDefinitionBuilder.genericBeanDefinition(beanClass);
        AbstractBeanDefinition beanDefinition = beanDefinitionBuilder.getBeanDefinition();
        beanDefinition.setAutowireMode(AbstractBeanDefinition.AUTOWIRE_BY_TYPE);
        beanDefinitionRegistry.registerBeanDefinition(beanName, beanDefinition);
    }
}

        BeanDefinitionBuilder beanDefinitionBuilder = BeanDefinitionBuilder.genericBeanDefinition(beanClassName);
        AbstractBeanDefinition beanDefinition = beanDefinitionBuilder.getBeanDefinition();
        beanDefinition.setAutowireMode(AbstractBeanDefinition.AUTOWIRE_BY_TYPE);
        beanDefinitionRegistry.registerBeanDefinition(beanName, beanDefinition);
    
<no_super_class>