@Override
    public Collection<RegisteredService> load() {
        HttpResponse response = null;
        val clientInfo = ClientInfoHolder.getClientInfo();
        try {
            val exec = HttpExecutionRequest.builder()
                .basicAuthPassword(properties.getBasicAuthPassword())
                .basicAuthUsername(properties.getBasicAuthUsername())
                .method(HttpMethod.GET)
                .url(SpringExpressionLanguageValueResolver.getInstance().resolve(properties.getUrl()))
                .headers(getRequestHeaders(properties))
                .build();
            response = HttpUtils.execute(exec);
            if (response != null && response.getCode() == HttpStatus.OK.value()) {
                try (val content = ((HttpEntityContainer) response).getEntity().getContent()) {
                    val result = IOUtils.toString(content, StandardCharsets.UTF_8);
                    val services = this.serializer.fromList(result);
                    services
                        .stream()
                        .map(this::invokeServiceRegistryListenerPostLoad)
                        .filter(Objects::nonNull)
                        .forEach(s -> publishEvent(new CasRegisteredServiceLoadedEvent(this, s, clientInfo)));
                    return services;
                }
            }
        } catch (final Exception e) {
            LoggingUtils.error(LOGGER, e);
        } finally {
            HttpUtils.close(response);
        }
        return new ArrayList<>();
    }
This is {@link RestfulServiceRegistry}.

@author Misagh Moayyed
@since 5.2.0
support/cas-server-support-rest-service-registry/src/main/java/org/apereo/cas/services/RestfulServiceRegistry.java