@Bean
        @ConditionalOnMissingBean(name = "jpaUmaResourceSetRepository")
        @RefreshScope(proxyMode = ScopedProxyMode.DEFAULT)
        public ResourceSetRepository umaResourceSetRepository(
            final ConfigurableApplicationContext applicationContext) {
            return BeanSupplier.of(ResourceSetRepository.class)
                .when(CONDITION.given(applicationContext.getEnvironment()))
                .supply(JpaResourceSetRepository::new)
                .otherwiseProxy()
                .get();
        }
This is {@link CasOAuthUmaJpaAutoConfiguration}.

@author Misagh Moayyed
@since 6.0.0
support/cas-server-support-oauth-uma-jpa/src/main/java/org/apereo/cas/config/CasOAuthUmaJpaAutoConfiguration.java