private void fetchRegistry() {
        if (closed) {
            return;
        }
        final HttpResponse response;
        final ClientRequestContext ctx;
        try {
            try (ClientRequestContextCaptor captor = Clients.newContextCaptor()) {
                response = webClient.execute(requestHeaders);
                ctx = captor.get();
            }
            final EventLoop eventLoop = ctx.eventLoop().withoutContext();
            response.aggregate(AggregationOptions.usePooledObjects(ctx.alloc(), eventLoop))
                    .handle((aggregatedRes, cause) -> {
                        if (closed) {
                            if (aggregatedRes != null) {
                                aggregatedRes.content().close();
                            }
                            return null;
                        }
                        if (cause != null) {
                            logger.warn("Unexpected exception while fetching the registry from: {}." +
                                        " (requestHeaders: {})", webClient.uri(), requestHeaders, cause);
                        } else {
                            try (HttpData content = aggregatedRes.content()) {
                                final HttpStatus status = aggregatedRes.status();
                                if (!status.isSuccess()) {
                                    logger.warn("Unexpected response from: {}. (status: {}, content: {}, " +
                                                "requestHeaders: {})", webClient.uri(), status,
                                                aggregatedRes.contentUtf8(), requestHeaders);
                                } else {
                                    try {
                                        final List<Endpoint> endpoints = responseConverter.apply(
                                                content.array());
                                        setEndpoints(endpoints);
                                    } catch (Exception e) {
                                        logger.warn("Unexpected exception while parsing a response from: {}. " +
                                                    "(content: {}, responseConverter: {}, requestHeaders: {})",
                                                    webClient.uri(), content.toStringUtf8(),
                                                    responseConverter, requestHeaders, e);
                                    }
                                }
                            }
                        }
                        scheduleNextFetch(eventLoop);
                        return null;
                    });
        } catch (Exception e) {
            logger.warn("Unexpected exception while fetching the registry from: {}." +
                        " (requestHeaders: {})", webClient.uri(), requestHeaders, e);
            scheduleNextFetch(CommonPools.workerGroup().next());
        }
    }
Returns a new {@link EurekaEndpointGroupBuilder} created with the specified {@link HttpPreprocessor}
and path.
eureka/src/main/java/com/linecorp/armeria/client/eureka/EurekaEndpointGroup.java