}
// attach the referenced element to the current document
SVGOMUseShadowRoot root;
root = new SVGOMUseShadowRoot(document, e, isLocal);
root.appendChild(localRefElement);
if (gn == null) {
gn = new CompositeGraphicsNode();
associateSVGContext(ctx, e, node);
} else {