public void tryCreateCasClient(final Collection<Client> clients) {
        for (var i = 0; i <= MAX_NUM_CLIENTS; i++) {
            val loginUrl = getProperty(CAS_LOGIN_URL, i);
            val protocol = getProperty(CAS_PROTOCOL, i);
            if (StringUtils.isNotBlank(loginUrl)) {
                var configuration = new CasConfiguration();
                val casClient = new CasClient(configuration);
                configuration.setLoginUrl(loginUrl);
                if (StringUtils.isNotBlank(protocol)) {
                    configuration.setProtocol(CasProtocol.valueOf(protocol));
                }
                casClient.setName(concat(casClient.getName(), i));
                clients.add(casClient);
            }
        }
    }
<p>tryCreateCasClient.</p>

@param clients a {@link java.util.List} object
pac4j-config/src/main/java/org/pac4j/config/builder/CasClientBuilder.java