SBMLDocument sbmlDocument = (SBMLDocument) contextObject;
if (elementName.equals("model")) {
Model model = (Model) newContextObject;
model.setLevel(sbmlDocument.getLevel());
model.setVersion(sbmlDocument.getVersion());
model.initDefaults();
sbmlDocument.setModel(model);
return model;
}
} else if (contextObject instanceof Model) {