@Bean
    @RefreshScope(proxyMode = ScopedProxyMode.DEFAULT)
    @ConditionalOnMissingBean(name = "transactionManagerOidcJwks")
    public PlatformTransactionManager transactionManagerOidcJwks(
        final ConfigurableApplicationContext applicationContext,
        @Qualifier("oidcJwksEntityManagerFactory")
        final ObjectProvider<EntityManagerFactory> emf) {

        return BeanSupplier.of(PlatformTransactionManager.class)
            .when(CONDITION.given(applicationContext.getEnvironment()))
            .and(() -> Objects.nonNull(emf.getIfAvailable()))
            .supply(() -> {
                val mgmr = new JpaTransactionManager();
                mgmr.setEntityManagerFactory(emf.getObject());
                return mgmr;
            })
            .otherwise(PseudoTransactionManager::new)
            .get();
    }
This is {@link CasOidcJwksJpaAutoConfiguration}.

@author Misagh Moayyed
@since 6.5.0
support/cas-server-support-oidc-jpa/src/main/java/org/apereo/cas/config/CasOidcJwksJpaAutoConfiguration.java