@Bean
        @RefreshScope(proxyMode = ScopedProxyMode.DEFAULT)
        public PlatformTransactionManager transactionManagerPasswordHistory(
            final ConfigurableApplicationContext applicationContext,
            @Qualifier("passwordHistoryEntityManagerFactory")
            final FactoryBean<EntityManagerFactory> emf) {
            return BeanSupplier.of(PlatformTransactionManager.class)
                .when(CONDITION.given(applicationContext.getEnvironment()))
                .supply(Unchecked.supplier(() -> {
                    val mgmr = new JpaTransactionManager();
                    mgmr.setEntityManagerFactory(emf.getObject());
                    return mgmr;
                }))
                .otherwiseProxy()
                .get();
        }
This is {@link JdbcPasswordHistoryManagementConfiguration}.

@author Misagh Moayyed
@since 5.2.0
support/cas-server-support-pm-jdbc/src/main/java/org/apereo/cas/config/JdbcPasswordHistoryManagementConfiguration.java