default Optional<? extends Client> findClient(final String name, final WebContext webContext) {
        return findAllClients(webContext).stream()
            .filter(client -> client.getName().equalsIgnoreCase(name))
            .findFirst();
    }
Find client by its name.

@param name       the name
@param webContext the web context
@return the optional
support/cas-server-support-pac4j-api/src/main/java/org/apereo/cas/pac4j/client/DelegatedIdentityProviders.java