def download_to_temp_file(uri)
      uri = Resync::XML.to_uri(uri)
      @helper.fetch_to_file(uri: uri)
    end
def download_to_temp_file(uri)
      uri = Resync::XML.to_uri(uri)
      @helper.fetch_to_file(uri: uri)
    end
Gets the content of the specified URI and saves it to a temporary file.
 @param uri [URI, String] the URI to download
 @return [String] the path to the downloaded file