public function getRepositoryUrl($repositoryId, $selector = null)
    {
        $baseUrl = $this->getRepositoryBaseUrl($repositoryId);
        if ($baseUrl === null) {
            return null;
        }
        $repositoryUrl = $this->buildUrl($baseUrl);

        if ($selector !== null && $selector !== '') {
            $repositoryUrl->getQuery()->modify([Constants::PARAM_SELECTOR => $selector]);
        }

        return $repositoryUrl;
    }