return g;
}
}
else if (contextObject instanceof Curve) {
Curve curve = (Curve) contextObject;
SBase newElement = null;
if (elementName.equals(RenderConstants.listOfElements)) {
newElement = curve.getListOfElements();
}
if (newElement != null) {
curve.registerChild(newElement);
return newElement;
}
}
else if (contextObject instanceof GradientBase) {