I am trying to achieve model driven development by defining a DSL and performing M2M as well as M2T (code generation). For the code generation I chose to work with XPand and template definitions. Could you provide sample code or link to documentation that explains how to invoke the template expansion from Java code?
P.S. I find it very hard to run such things in standalone mode outside of Eclipse so I started by writing simple Java utilities.
Here is the code for anyone interested: