// TODO: add all other namespaces !!
if (isSBMLNamespaceNeeded) {
// writing the SBML namespace
SBMLDocument doc = null;
SBase sbase = m.getMath().getParentSBMLObject();
String sbmlNamespace = SBMLDocument.URI_NAMESPACE_L3V1Core;
if (sbase != null) {
doc = sbase.getSBMLDocument();
sbmlNamespace = doc.getSBMLDocumentNamespaces().get("xmlns");
if (sbmlNamespace == null) {
logger.warn("writeMathML: the SBML namespace of this SBMLDocument" +
" could not be found, using the default namespace (" +
SBMLDocument.URI_NAMESPACE_L3V1Core + ") instead.");