code: public static String doGet(final String url, final int retryTimes) {
  
      try {
        return doGetByLoop(url, retryTimes);
      } catch (HttpException e) {
        throw new HttpException(format("Failed to download content for url: '%s'. Tried '%s' times",
          url, Math.max(retryTimes + 1, 1)));
      }
    }
docs: access given url by get request, if get exception, will retry by given
  retryTimes.
  
  @param url url to access
  @param retryTimes retry times when get exception.
  @return response content of target url.