public Optional<Client> findClient(final String name) {
        CommonHelper.assertNotBlank("name", name);
        init();

        val foundClient = clientsMap.get(name.toLowerCase().trim());
        LOGGER.debug("Found client: {} for name: {}", foundClient, name);
        return Optional.ofNullable(foundClient);
    }
Return the right client according to the specific name.

@param name name of the client
@return the right client
pac4j-core/src/main/java/org/pac4j/core/client/Clients.java