docs: public void reportSummary(@WillClose OutputStream out) throws IOException {
          XMLOutput xmlOutput = new OutputStreamXMLOutput(out);
          try {
              writeXML(xmlOutput);
          } finally {
              xmlOutput.finish();
          }
      }