@Bean
    @RefreshScope(proxyMode = ScopedProxyMode.DEFAULT)
    public BeanContainer<String> jpaOidcJwksPackagesToScan(final ConfigurableApplicationContext applicationContext) {
        return BeanSupplier.of(BeanContainer.class)
            .when(CONDITION.given(applicationContext.getEnvironment()))
            .supply(() -> BeanContainer.of(CollectionUtils.wrapSet(OidcJsonWebKeystoreEntity.class.getPackage().getName())))
            .otherwise(BeanContainer::empty)
            .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