private static String comPath = "/svgcomponent/parallelGateway.xml";
public String createComponent(SvgBaseTo svgTo) {
String result = null;
try {
SvgParallelGatewayTo pGateTo = (SvgParallelGatewayTo)svgTo;
InputStream in = SvgBench.class.getResourceAsStream(comPath);
Document doc = XmlUtil.read(in);
String str = doc.getRootElement().asXML();
str = FlowSvgUtil.replaceAll(str, local_x, StringUtil.getString(pGateTo.getX()+2));
str = FlowSvgUtil.replaceAll(str, local_y, StringUtil.getString(pGateTo.getY()+2));
str = FlowSvgUtil.replaceAll(str, id, pGateTo.getId());
str = FlowSvgUtil.replaceAll(str, text, pGateTo.getLabel());
result = str;
} catch (DocumentException e) {
throw new FixFlowException("",e);
}
return result;