class RestAuthenticatorBuilder extends AbstractBuilder {

    /**
     * <p>Constructor for RestAuthenticatorBuilder.</p>
     *
     * @param properties a {@link Map} object
     */
    public RestAuthenticatorBuilder(final Map<String, String> properties) {
        super(properties);
    }

    /**
     * <p>tryBuildRestAuthenticator.</p>
     *
     * @param authenticators a {@link Map} object
     */
    public void tryBuildRestAuthenticator(final Map<String, Authenticator> authenticators) {<FILL_FUNCTION_BODY>}
}

        for (var i = 0; i <= MAX_NUM_AUTHENTICATORS; i++) {
            val url = getProperty(REST_URL, i);
            if (isNotBlank(url)) {
                authenticators.put(concat("rest", i), new RestAuthenticator(url));
            }
        }
    
<methods><variables>protected static final int MAX_NUM_AUTHENTICATORS,protected static final int MAX_NUM_CLIENTS,protected static final int MAX_NUM_CUSTOM_PROPERTIES,protected static final int MAX_NUM_ENCODERS,protected final non-sealed Map<java.lang.String,org.pac4j.core.credentials.authenticator.Authenticator> authenticators,protected final non-sealed Map<java.lang.String,java.lang.String> properties