docs: public static void main(String[] args) throws Exception {
  
          ModuleConfigImpl module = new ModuleConfigImpl("o.r.g");
  
          module.setProperty("jboss.api", "private");
          module.setProperty("prop", VALUE);
  
          module.setMainClass("o.r.g.MainClass");
  
          module.addResource(new ResourceRoot("a.jar"));
          module.addResource(new ResourceRoot("another.jar"));
  
          module.addDependency(new ModuleDependency("a.module"));
          module.addDependency(new ModuleDependency("another.module"));
  
          StringWriter strWriter = new StringWriter();
          XMLExtendedStreamWriter writer = create(XMLOutputFactory.newInstance().createXMLStreamWriter(strWriter));
          module.writeContent(writer, module);
          writer.flush();
          System.out.println(strWriter.toString());
      }