spatialModel.setGeometry(geometry);
return geometry;
}
} else if (contextObject instanceof Compartment) {
Compartment compartment = (Compartment) contextObject;
SpatialCompartmentPlugin spatialCompartment = null;
if (compartment.getExtension(SpatialConstants.namespaceURI) != null) {
spatialCompartment = (SpatialCompartmentPlugin) compartment.getExtension(SpatialConstants.namespaceURI);
} else {
spatialCompartment = new SpatialCompartmentPlugin(compartment);
compartment.addExtension(SpatialConstants.namespaceURI, spatialCompartment);
}
if (elementName.equals(SpatialConstants.compartmentMapping)) {
CompartmentMapping compartmentMapping = new CompartmentMapping();
spatialCompartment.setCompartmentMapping(compartmentMapping);
return compartmentMapping;
}
} else if (contextObject instanceof Parameter) {
Parameter param = (Parameter) contextObject;
SpatialParameterPlugin spatialParam = null;