code: public Document findXMLResource(String name) {
      URL url = this.getClass().getResource(name);
      DocumentBuilderFactory docFactory = DocumentBuilderFactory
              .newInstance();
      docFactory.setNamespaceAware(true);
  	// Fortify Mod: Disable entity expansion to foil External Entity Injections
  	docFactory.setExpandEntityReferences(false);
      Document doc = null;
      try {
        DocumentBuilder docBuilder = docFactory.newDocumentBuilder();
        doc = docBuilder.parse(url.toURI().toString());
      } catch (Exception e) {
        LOGR.log(Level.WARNING, "Failed to parse classpath resource "
                + name, e);
      }
      return doc;
    }
docs: Builds a DOM Document representing a classpath resource.
  
  @param name
  The name of an XML resource.
  @return A Document node, or {@code null} if the resource cannot be parsed
  for any reason.