// modelClass.addField(postfireReturnsField);
// First, write out Giotto Code for the model.
String directory = PhaseOptions.getString(options, "outDir");
try {
GiottoCodeGenerator giottoCodeGenerator = new GiottoCodeGenerator();
String giottoCode = giottoCodeGenerator
.generateGiottoCode((TypedCompositeActor) model);
FileWriter writer = null;
try {
writer = new FileWriter(directory + "/" + model.getName()
+ ".giotto");