@SuppressWarnings("deprecation")
public static void main(String[] args) throws ParseException,
XMLStreamException, SBMLException {
SBMLDocument doc = new SBMLDocument(3, 1);
Model model = doc.createModel("test_model");
Parameter p = model.createParameter("p1");
p.setValue(1d);
Event e = model.createEvent("e1");
Priority prior = e.createPriority();
prior.setMath(new ASTNode(1));
Trigger t = e.createTrigger();
t.setFormula("time == 1");