code: protected void executeMediaAndDownloadTo(OutputStream outputStream) throws IOException {
      if (downloader == null) {
        executeMedia().download(outputStream);
      } else {
        downloader.download(buildHttpRequestUrl(), requestHeaders, outputStream);
      }
    }
docs: Sends the media request to the server and writes the media content input stream of
  {@link HttpResponse} into the given destination output stream.
  
  <p>
  This method closes the content of the HTTP response from {@link HttpResponse#getContent()}.
  </p>
  
  <p>
  Subclasses may override by calling the super implementation.
  </p>
  
  @param outputStream destination output stream