code: @Override
      public void getXliffFromDocumentTranslationRequest(String trId,
              String srcLanguage, String trgLanguage, OutputStream outputXliff)
              throws ServiceException, IOException {
          if (trId == null || trId.isEmpty()) {
              throw new IllegalArgumentException("Non-empty trId must be specified.");
          }
          if (srcLanguage == null || srcLanguage.isEmpty()) {
              throw new IllegalArgumentException("Non-empty srcLanguage must be specified.");
          }
          if (trgLanguage == null || trgLanguage.isEmpty()) {
              throw new IllegalArgumentException("Non-empty trgLanguage must be specified.");
          }
  
          StringBuilder urlBuf = new StringBuilder();
          urlBuf
              .append(escapePathSegment(account.getInstanceId()))
              .append("/v2/doc-xliff/trs/")
              .append(trId)
              .append("/")
              .append(srcLanguage)
              .append("/")
              .append(trgLanguage);
  
          ApiResponse resp = null;
          try {
              resp = invokeApi("GET", urlBuf.toString(), null, null, false);
          } catch (Exception e) {
              String errMsg = "Error while processing API request GET " + urlBuf;
              throw new ServiceException(errMsg, e);
          }
          assert resp != null;
  
          if (resp.contentType == null || !resp.contentType.equalsIgnoreCase("application/xliff+xml")) {
              throw new ServiceException("Received HTTP status: " + resp.status
                      + " with non-XLIFF response (" + resp.contentType + ") from GET"
                      + " " + urlBuf.toString());
          }
          assert resp.body != null;
          outputXliff.write(resp.body);
      }
docs: /* (non-Javadoc)
  @see com.ibm.g11n.pipeline.client.ServiceClient#getXliffFromDocumentTranslationRequest(java.lang.String, java.lang.String, java.lang.String, java.io.OutputStream)