@ConditionalOnMissingBean(name = "casThemeSource")
    @Bean
    @RefreshScope(proxyMode = ScopedProxyMode.DEFAULT)
    public ThemeSource themeSource(final CasConfigurationProperties casProperties) {
        if (casProperties.getView().getThemeSourceType() == ViewProperties.ThemeSourceTypes.AGGREGATE) {
            return new AggregateCasThemeSource(casProperties);
        }
        return new DefaultCasThemeSource(casProperties);
    }
This is {@link CasThemesAutoConfiguration}.

@author Misagh Moayyed
@since 5.0.0
support/cas-server-support-themes/src/main/java/org/apereo/cas/config/CasThemesAutoConfiguration.java