code: public static DocumentBuilderFactory getControlDocumentBuilderFactory() {
          if (controlBuilderFactory == null) {
              controlBuilderFactory = DocumentBuilderFactory.newInstance();
              controlBuilderFactory.setNamespaceAware(true);
              if (enableXXEProtection) {
                  DocumentBuilderFactoryConfigurer.Default.configure(controlBuilderFactory);
              }
          }
          return controlBuilderFactory;
      }
docs: Get the <code>DocumentBuilderFactory</code> instance used to instantiate
  parsers for the control XML in an XMLTestCase.
  @return factory for control parsers