class EntityFactoryHolderConfiguration {


    @Bean
    public ApplicationContextAware entityFactoryHolder() {<FILL_FUNCTION_BODY>}

}

        return context -> {
            try {
                EntityFactoryHolder.FACTORY = context.getBean(EntityFactory.class);
            } catch (BeansException ignore) {
                
            }
        };
    
<no_super_class>