return g;
}
}
else if (contextObject instanceof Polygon) {
Polygon polygon = (Polygon) contextObject;
SBase newElement = null;
if (elementName.equals(RenderConstants.listOfElements)) {
newElement = polygon.getListOfElements();
}
if (newElement != null) {
polygon.registerChild(newElement);
return newElement;
}
}
else if (contextObject instanceof LineEnding) {