private void startExecutingTestProgram(boolean threaded) {
// Instantiate a runtime and execute the program
runtime = createExecutor(getWorkspaceManager(), getWorkspaceManager().makeExecutionContextWithDefaultProperties());
execTimeGen = new StatsGenerator ();
runtime.addStatsGenerator(execTimeGen);
if (threaded) {
// Execute in a new thread
Thread execThread = new Thread(this, "CAL Execution Thread");