@Override
        public ThemeViewResolver create(final String theme) {
            LOGGER.trace("Creating theme view resolver based on theme [{}]", theme);
            val resolver = new ThemeViewResolver(delegate, thymeleafProperties,
                theme, thymeleafViewResolverConfigurers);
            resolver.setApplicationContext(applicationContext);
            resolver.setCache(thymeleafProperties.isCache());
            return resolver;
        }
{@link ThemeViewResolverFactory} that will
create a {@link ThemeViewResolver} for the specified theme.
support/cas-server-support-thymeleaf-core/src/main/java/org/apereo/cas/services/web/ThemeViewResolver.java