@Nonnull
                @Override
                protected Locale determineDefaultLocale(final HttpServletRequest request) {
                    val locale = request.getLocale();
                    if (StringUtils.isBlank(localeProps.getDefaultValue())
                        || !locale.getLanguage().equals(localeProps.getDefaultValue())) {
                        return locale;
                    }
                    return Locale.forLanguageTag(localeProps.getDefaultValue());
                }
This is {@link CasWebAppConfiguration}.

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