public function getEndpointForUrl($url)
    {
        if (!isset($this->cachedEndpoints[$url])) {
            $this->cachedEndpoints[$url] = $this->fetchEndpointForUrl($url);
        }

        return $this->cachedEndpoints[$url];
    }