layout.registerChild(newElement);
return newElement;
}
}
else if (contextObject instanceof RenderInformationBase) {
RenderInformationBase renderInformation = (RenderInformationBase) contextObject;
SBase newElement = null;
if (elementName.equals(RenderConstants.listOfGradientDefinitions)) {
newElement = renderInformation.getListOfGradientDefintions();
}
if (elementName.equals(RenderConstants.listOfColorDefinitions)) {
newElement = renderInformation.getListOfColorDefinitions();
}
if (elementName.equals(RenderConstants.listOfLineEndings)) {
newElement = renderInformation.getListOfLineEndings();
}
if (renderInformation instanceof GlobalRenderInformation) {
GlobalRenderInformation globalRenderInformation =
(GlobalRenderInformation) renderInformation;
if (elementName.equals(RenderConstants.listOfStyles)) {
newElement = globalRenderInformation.getListOfStyles();
}
}
if (renderInformation instanceof LocalRenderInformation) {
LocalRenderInformation localRenderInformation =
(LocalRenderInformation) renderInformation;
if (elementName.equals(RenderConstants.listOfLocalStyles)) {
newElement = localRenderInformation.getListOfLocalStyles();
}
}
if (newElement != null) {
renderInformation.registerChild(newElement);
return newElement;
}
}
else if (contextObject instanceof Style) {