code: @Override
      public DocumentBuilderFactory createDocumentBuilderFactory() {
          DocumentBuilderFactory instance = DocumentBuilderFactory.newInstance();
          instance.setXIncludeAware(this.isXIncludeAware);
          instance.setExpandEntityReferences(this.isExpandEntityReferences);
  //        for (String featureDefault : FEATURE_DEFAULTS) {
  //            String[] featureValue = featureDefault.split("#");
  //            try {
  //                instance.setFeature(featureValue[0], Boolean.valueOf(featureValue[1]));
  //            } catch (ParserConfigurationException e) {
  //                // No worries if one feature is not supported.
  //            }
  //        }
          if (!NamespacePhilosophy.AGNOSTIC.equals(namespacePhilosophy)) {
              instance.setNamespaceAware(NamespacePhilosophy.HEDONISTIC.equals(namespacePhilosophy));
          }
          return instance;
      }
docs: {@inheritDoc}