protected void checkForLocalParameter(final UriComponentsBuilder uriBuilder, final Map<String, String> queryParams) {
        val localProps = casProperties.getLocale();
        LOGGER.trace("Processing locale parameter [{}]", localProps.getParamName());
        webContext.getRequestParameter(localProps.getParamName()).ifPresent(localeParam -> {
            LOGGER.debug("Processing locale parameter [{}] with value [{}]",
                localProps.getParamName(), localeParam);
            uriBuilder.queryParam(localProps.getParamName(), "{locale}");
            queryParams.put("locale", localeParam);
        });
    }
Build provider configuration.

@return the optional provider
support/cas-server-support-pac4j-core/src/main/java/org/apereo/cas/web/DelegatedClientIdentityProviderConfigurationFactory.java