return rule;
} else if (elementName.equals("parameterRule")
&& list.getSBaseListType().equals(ListOf.Type.listOfRules)
&& model.getLevel() == 1)
{
ExplicitRule rule = (ExplicitRule) newContextObject;
model.addRule(rule);
return rule;
} else if (elementName.equals("specieConcentrationRule")
&& list.getSBaseListType().equals(ListOf.Type.listOfRules)
&& model.getLevel() == 1
&& model.getVersion() == 1)
{
ExplicitRule rule = (ExplicitRule) newContextObject;
model.addRule(rule);
return rule;
} else if (elementName.equals("speciesConcentrationRule")
&& list.getSBaseListType().equals(ListOf.Type.listOfRules)
&& model.getLevel() == 1
&& model.getVersion() == 2)
{
ExplicitRule rule = (ExplicitRule) newContextObject;
model.addRule(rule);
return rule;
} else if (elementName.equals("compartmentVolumeRule")
&& list.getSBaseListType().equals(ListOf.Type.listOfRules)
&& model.getLevel() == 1)
{
ExplicitRule rule = (ExplicitRule) newContextObject;
model.addRule(rule);
return rule;
} else if (elementName.equals("rateRule")
&& list.getSBaseListType().equals(