// TODO not sure if necessary to check if listOfLayouts != null
ListOf<Layout> listOfLayouts = layoutModel.getListOfLayouts();
SBase newElement = null;
if (elementName.equals(RenderConstants.listOfGlobalRenderInformation)) {
RenderListOfLayoutsPlugin renderPlugin = new RenderListOfLayoutsPlugin(listOfLayouts);
listOfLayouts.addExtension(RenderConstants.namespaceURI, renderPlugin);
newElement = renderPlugin.getListOfGlobalRenderInformation();
}
if (newElement != null) {
listOfLayouts.registerChild(newElement);
return newElement;
}
}
else if (contextObject instanceof Layout) {
Layout layout = (Layout) contextObject;
SBase newElement = null;
if (elementName.equals(RenderConstants.listOfLocalRenderInformation)) {
RenderLayoutPlugin renderPlugin = new RenderLayoutPlugin(layout);
layout.addExtension(RenderConstants.namespaceURI, renderPlugin);
newElement = renderPlugin.getListOfLocalRenderInformation();
}
if (newElement != null) {
layout.registerChild(newElement);
return newElement;
}