+ " can not be parsed!");
System.exit(-1);
}
System.out.println(SCXMLWriter.write(doc));
SCXMLExecutor exec = new SCXMLExecutor(evaluator, null, trc);
EventDispatcher ed = new SimpleScheduler(exec);
exec.setEventdispatcher(ed);
exec.setStateMachine(doc);
exec.addListener(doc, trc);
exec.registerInvokerClass("scxml", SimpleSCXMLInvoker.class);
exec.setRootContext(rootCtx);