final String defaultWorkspaceFile = "cal.optimizer.cws";
BasicCALServices calServices = CALServicesTestUtilities.makeUnsharedUnitTestCALServices(null, defaultWorkspaceFile, null, false);
calServices.getWorkspaceManager().useOptimizer(false);
CompilerMessageLogger messageLogger = new MessageLogger();
if (!calServices.compileWorkspace(null, messageLogger)) {
System.err.println(messageLogger.toString());
}
final ExecutionContext executionContext = calServices.getWorkspaceManager().makeExecutionContextWithDefaultProperties();