code: public Document executePackageManagerMethodXml(CloseableHttpClient httpClient, HttpRequestBase method) {
      PackageManagerXmlCall call = new PackageManagerXmlCall(httpClient, method, log);
      return executeHttpCallWithRetry(call, 0);
    }
docs: Execute CRX HTTP Package manager method and parse XML response.
  @param httpClient Http client
  @param method Get or Post method
  @return XML document