private void resolveUiLocale(final HttpServletRequest request,
                                 final HttpServletResponse response) {
        val service = argumentExtractor.getObject().extractService(request);
        if (service != null) {
            val newLocale = (List) service.getAttributes().get(OidcConstants.UI_LOCALES);
            if (newLocale != null && !newLocale.isEmpty()) {
                configureLocale(request, response, Locale.forLanguageTag(newLocale.getFirst().toString()));
            }
        }
    }
This is {@link OidcLocaleChangeInterceptor}.

@author Misagh Moayyed
@since 6.4.0
support/cas-server-support-oidc-core-api/src/main/java/org/apereo/cas/oidc/web/OidcLocaleChangeInterceptor.java