// Run the code generator in a separate process
try {
List commands = _generateCodeGeneratorCommands(
model, options, codeGenerator);
exec.setCommands(commands);
exec.start();
} catch (Exception ex) {
throw new IllegalActionException(model, ex, null);
}
// FIXME: Above is asynchronous: Do in listener?