Own EntityManagerProvider

Probably continuation of the topic Provide my own EntityManagerProvider?

I have got also multiple data sources and axon for dedicated one. I use Spring Boot with axon framework.
My question is how to properly connect bean of LocalContainerEntityManagerFactoryBean with Entity Manager Provider - how to properly instantiate it?

I have sth like below but it doesn’t work:
@Bean(name = “axonEntityManagerProvider”)
public EntityManagerProvider axonEntityManagerProvider(@Qualifier(“axonEntityManagerFactory”) EntityManagerFactory entityManagerFactory) {
return () → entityManagerFactory.createEntityManager();

where @Bean(name = “axonEntityManagerFactory”)
public LocalContainerEntityManagerFactoryBean entityManagerFactory( …

Could you please advice ?