private static String none ="none";
public String createComponent(SvgBaseTo svgTo) {
String result = null;
try {
SvgDataOutputTo stevent = (SvgDataOutputTo)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(stevent.getX()));
str = FlowSvgUtil.replaceAll(str, local_y, StringUtil.getString(stevent.getY()));
str = FlowSvgUtil.replaceAll(str, id, stevent.getId());
str = FlowSvgUtil.replaceAll(str, text, stevent.getLabel());
str = FlowSvgUtil.replaceAll(str, input, none);
str = FlowSvgUtil.replaceAll(str, output, "");
result = str;
} catch (DocumentException e) {
throw new FixFlowException("",e);