@Override public String getEndpointUrl() { return config .getEndpoint() .map(EndpointDescription::getEndpointUrl) .orElse(config.getEndpointUrl().orElse("")); }
@Override public Optional<EndpointDescription> getEndpoint() { return config.getEndpoint(); }