code: public String generateDownloadUrlWithGerritGitweb(@NotNull String gerritUrl, @NotNull String ref) throws GerritException {
  
          return MessageFormat.format(GERRIT_DOWNLOAD_URL_TEMPLATE, getHost(gerritUrl), getProject(gerritUrl), ref);
      }
docs: Generate a download url for a Gerrit snapshot using the gerrit url of the project and the ref
  
  @param gerritUrl URL has to be the 'git clone' link (either http or git+ssh)
  @param ref The ref to generate a snapshot. It can be a sha, branch, tag. If left empty, master is used
  
  @return Download url
  @throws GerritException thrown if the Gerrit Url is not valid