public function getUrl(string $service, bool $insecure = false): Uri
    {
        if (!isset($this->resolveDomainResponse[$service])) {
            throw new \RuntimeException(sprintf('%s service was not found.', $service));
        }

        $url = $this->resolveDomainResponse[$service];
        if (!$insecure) {
            $url = $url->withScheme('https');
        }

        return $url;
    }