}
// attach the referenced element to the current document
SVGOMCSSImportedElementRoot root;
root = new SVGOMCSSImportedElementRoot(document, e, isLocal);
root.appendChild(localRefElement);
if (gn == null) {
gn = new CompositeGraphicsNode();
} else {
int s = gn.size();