+ } else if (!(node instanceof RouteGraphNode) && !(node instanceof LinkNode)){
+ try {
+ Element doc = renderSVGNode(svgGenerator, (IG2DNode)node);
+ if (doc.getElementsByTagName("g").getLength() == 0)
+ return;
+ String svg = printSVGDocument(doc);
+ parentBuilder.append(MAIN_SECTION, "<g>");
+ parentBuilder.append(MAIN_SECTION, svg);
+ parentBuilder.append(MAIN_SECTION, "\n</g>");
+ } catch (Exception e) {
+ // TODO: There are nodes that do not behave well when rendered to SVG. For backwards compatibility, we don't handle the exceptions.
+ }