// 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;