After studying about the idea, I came up with the following design proposal.
Please refer the attached proposed_design_1 image.
Composite XML should be generated using the Tuscany's in-memory representation of the composite model.
It will then will give as an input for the Composite Analyzer. Composite Analyzer then analyzes the XML document
and grab the relevant DOM Elements such as Composite, Component, Service, Reference, Wire etc. and starts to
build the SVG document using SVG DOM API of Apache Batik.
After Composite Analyzer built up the SVG document it will be the output which represents the composite diagram.
DOM elements (Composite, Component, Service, Reference, Wire etc.) possibly be static classes which holds the
shape of the artifact, colour, other static properties and will be given the dynamic properties (such as position, size etc.)
as input, in order to create a DOM element and it will be then handover to the Composite Analyzer.
This may be very high level design, but I would appreciate if you can give me some feedback.