code: public static XdmNode getParamsFromLog(
              net.sf.saxon.s9api.DocumentBuilder builder, Document log)
              throws Exception {
          Element starttest = (Element) log.getElementsByTagName("starttest")
                  .item(0);
          NodeList nl = starttest.getElementsByTagName("params");
          if (nl == null || nl.getLength() == 0) {
              return null;
          } else {
              Document doc = DomUtils.createDocument(nl.item(0));
              return builder.build(new DOMSource(doc));
          }
      }
docs: Returns the parameters to a test from its log document