[template public main(...)] [file ...] [generate(...).replace("<PLACEHOLDER>", getImports(...))/] [/file] [/template] [template public generate(...)] <PLACEHOLDER> public class MyClass { MyClassBody } [/template] [query public getImports(...) : String = invoke(<invoke java service to retrieve import list and convert it to a String>)/]
[template public main(...)] [file ...] [generate(...)/] [/file] [/template] [template public generate(...) post (replace("<PLACEHOLDER>", getImports(...)))] <PLACEHOLDER> public class MyClass { MyClassBody } [/template] [query public getImports(...) : String = invoke(<invoke java service to retrieve import list and convert it to a String>)/]