protected HttpResponse fetchMetadata(final SamlRegisteredService service,
                                         final String metadataLocation,
                                         final CriteriaSet criteriaSet,
                                         final File backupFile) {
        LOGGER.debug("Fetching metadata from [{}]", metadataLocation);
        val exec = HttpExecutionRequest.builder()
            .method(HttpMethod.GET)
            .url(metadataLocation)
            .proxyUrl(service.getMetadataProxyLocation())
            .httpClient(httpClient)
            .maximumRetryAttempts(samlIdPProperties.getMetadata().getCore().getMaximumRetryAttempts())
            .build();
        return HttpUtils.execute(exec);
    }
This is {@link UrlResourceMetadataResolver}.

@author Misagh Moayyed
@since 5.2.0
support/cas-server-support-saml-idp-metadata/src/main/java/org/apereo/cas/support/saml/services/idp/metadata/cache/resolver/UrlResourceMetadataResolver.java