// the class will be compiled lazyly
String resolveDescription = null;
CompilationUnit cu = new CompilationUnit(objectGroovyClassFactory.config);
cu.addSource(name, script);
try {
cu.compile(Phases.CONVERSION);
}
catch (CompilationFailedException e) {
throw new CommandException(ErrorKind.INTERNAL, "Could not compile command", e);
}
CompileUnit ast = cu.getAST();