How to use the java library to generate xml with a valid graphical info?

Is there any way how to use the java library to generate xml with a valid graphical info about the process ?
For example:

<bpmndi:BPMNDiagram id="BPMNDiagram_atlas.organizationcontroller.organizationcontroller_sample_workflow-1.0">
		<bpmndi:BPMNPlane bpmnElement="atlas.organizationcontroller.organizationcontroller_sample_workflow-1.0" id="BPMNPlane_atlas.organizationcontroller.organizationcontroller_sample_workflow-1.0"></bpmndi:BPMNPlane>
	</bpmndi:BPMNDiagram>

Here not to missing graphical info about the process.