SBMLDocument doc = new SBMLDocument(2, 2);
doc.addTreeNodeChangeListener(this);
Model model = doc.createModel("test_model");
Parameter p1 = model.createParameter("p1");
p1.setId("p2");
model.removeParameter(p1);
Compartment c = model.createCompartment("c");
c.setSize(4.3);
c.setSBOTerm(SBO.getPhysicalCompartment());