code: public static boolean recordingInfo(String testName) throws ParserConfigurationException, SAXException, IOException {
      TECore.rootTestName.clear();
      String path = getBaseConfigDirectory() + "/config.xml";
      if (new File(path).exists()) {
          // Fortify Mod: prevent external entity injection
          DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
          dbf.setExpandEntityReferences(false);
          DocumentBuilder db = dbf.newDocumentBuilder();
          //DocumentBuilder db = DocumentBuilderFactory.newInstance().newDocumentBuilder();
          Document doc = db.parse(path);
          NodeList nodeListForStandardTag = doc.getElementsByTagName("standard");
          if (null!=nodeListForStandardTag && nodeListForStandardTag.getLength() > 0) {
            for (int i = 0; i < nodeListForStandardTag.getLength(); i++) {
              Element elementStandard = (Element) nodeListForStandardTag.item(i);
              if (testName.equals(elementStandard.getElementsByTagName("local-name").item(0).getTextContent())) {
                if (null!=elementStandard.getElementsByTagName("record").item(0)) {
                  System.setProperty("Record", "True");
                  NodeList rootTestNameArray=elementStandard.getElementsByTagName("test-name");
                  if (null!=rootTestNameArray && rootTestNameArray.getLength() > 0) {
                    for (int counter = 0; counter < rootTestNameArray.getLength(); counter++) {
                      Element rootTestName = (Element) rootTestNameArray.item(counter);
                      TECore.rootTestName.add(rootTestName.getTextContent());
                    }
                  }
                  return true;
                }
              }
      
            }
          }
      }
      System.setProperty("Record", "False");
      return false;
    }
docs: Determine the test recording is on or off.
  @param testName
  @return
  @throws javax.xml.parsers.ParserConfigurationException
  @throws org.xml.sax.SAXException
  @throws java.io.IOException