private Map<String, Map<String, Object>> buildClientMap(final Collection<BaseClient> currentClients) {
        val clientsMap = new TreeMap<String, Map<String, Object>>();
        currentClients.forEach(client -> delegatedClientsEndpointContributors.ifAvailable(contributors ->
            contributors
                .stream()
                .filter(contributor -> contributor.supports(client))
                .forEach(contributor -> clientsMap.put(client.getName(), contributor.contribute(client)))));
        return clientsMap;
    }
Gets loaded delegated identity provider clients from the configuration.

@return the loaded clients
support/cas-server-support-pac4j-core-clients/src/main/java/org/apereo/cas/support/pac4j/authentication/clients/DelegatedClientsEndpoint.java