protected static SVGImpl generateSVGImpl(java.io.InputStream is) throws java.io.IOException {
byte[] b=new byte[is.available()];
is.read(b);
BPELInterface bpel = new BPELImpl();
OMElement bpelStr = bpel.load(new String(b));
bpel.processBpelString(bpelStr);
LayoutManager layoutManager = BPEL2SVGFactory.getInstance().getLayoutManager();
layoutManager.setVerticalLayout(true);
layoutManager.setYSpacing(20);
layoutManager.setYSpacing(50);
layoutManager.layoutSVG(bpel.getRootActivity());
SVGImpl svg = new SVGImpl();
svg.setRootActivity(bpel.getRootActivity());
return(svg);
}