private static String comPath = "/svgcomponent/exclusiveGateway.xml";
public String createComponent(SvgBaseTo svgTo) {
String result = null;
try {
SvgExclusiveGatewayTo sGateTo = (SvgExclusiveGatewayTo)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(sGateTo.getX()+2));
str = FlowSvgUtil.replaceAll(str, local_y, StringUtil.getString(sGateTo.getY()+2));
str = FlowSvgUtil.replaceAll(str, id, sGateTo.getId());
str = FlowSvgUtil.replaceAll(str, text, sGateTo.getLabel());
result = str;
} catch (DocumentException e) {
throw new FixFlowException("",e);
}
return result;