// If not other elements recognized the new element to read, it might be
// on of the extended SBase children
if (contextObject instanceof SBase)
{
SBase sbase = (SBase) contextObject;
CompSBasePlugin compSBase = null;
if (sbase.getExtension(namespaceURI) != null) {
compSBase = (CompSBasePlugin) sbase.getExtension(namespaceURI);
} else {
compSBase = new CompSBasePlugin(sbase);
sbase.addExtension(namespaceURI, compSBase);
}
if (elementName.equals(CompConstants.listOfReplacedElements))
{
return compSBase.getListOfReplacedElements();
}
else if (elementName.equals(CompConstants.replacedBy))
{
return compSBase.createReplacedBy();
}
}
return contextObject;