{
logger.debug("processStartElement: element name = " + elementName);
if (elementName.equals("notes")
&& (contextObject instanceof SBase)) {
SBase sbase = (SBase) contextObject;
sbase.setNotes(new XMLNode(new XMLTriple("notes", null, null), new XMLAttributes()));
return contextObject;
}
// Creating a StartElement XMLNode !!
XMLNode xmlNode = new XMLNode(new XMLTriple(elementName, null, prefix), new XMLAttributes(), new XMLNamespaces());
if (contextObject instanceof SBase) {
SBase parentSBMLElement = (SBase) contextObject;
if (typeOfNotes.equals("notes")) {
parentSBMLElement.getNotes().addChild(xmlNode);
} else if (typeOfNotes.equals("message") && parentSBMLElement instanceof Constraint) {
((Constraint) parentSBMLElement).getMessage().addChild(xmlNode);
} else {
logger.warn("The type of String " + typeOfNotes + " on the element " +
parentSBMLElement.getElementName() + " is unknown !! Some data might be lost");
}
} else if (contextObject instanceof XMLNode) {
XMLNode parentNode = (XMLNode) contextObject;