GroovyShell shell = new GroovyShell();
shell.setVariable("context", ctx);
//shell.evaluate("src/test/groovy/j2ee/CreateData.groovy");
//shell.evaluate("src/main/groovy/ui/Console.groovy");
GroovyObject console = (GroovyObject) InvokerHelper.invokeConstructorOf("groovy.ui.Console", null);
console.setProperty("shell", shell);
console.invokeMethod("run", null);
/*
*/
}
catch (Exception e) {
System.out.println("Caught: " + e);