Used Fluet Builder API to generate BPMN model. Tried with same example as provided in https://docs.camunda.org/manual/latest/user-guide/model-api/bpmn-model-api/fluent-builder-api/#generation-of-diagram-interchange
While executing through main method of java am getting the same as shown in example[process with diagram].
Same when i execute through my primefaces application running on Apache Tomcat 9.0 and Java version 1.8.0, only process is getting generated without diagram and few namespaces are missing.
Note: Added all the dependency jar.