code: public Document generate() throws ParserConfigurationException {
          final DocumentBuilderFactory docFactory = DocumentBuilderFactory.newInstance();
          docFactory.setNamespaceAware(true);
          final DocumentBuilder docBuilder = docFactory.newDocumentBuilder();
          this.doc = docBuilder.newDocument();
          doc.setXmlStandalone(true);
  
          // Create root <bom> node
          final Element bomNode = createRootElement("bom", null,
                  new Attribute("xmlns", NS_BOM_10),
                  new Attribute("version", "1"));
  
          final Element componentsNode = createElement(bomNode, "components");
          createComponentsNode(componentsNode, bom.getComponents());
          return doc;
      }
docs: Creates a CycloneDX BoM from a set of Components.
  @return an XML Document representing a CycloneDX BoM
  @since 1.1.0