Welcome to Sugar4j, the new kind of Java code generator.
Sugar4j creates Java code without the need of external template files. Both
the static and the dynamic parts are contained in the same Java file. Having only one source file means maintaining only one source file, only one programming
language to learn/understand, only one editor: the one you use the most because it is the best!
It is implemented using a "fluent" or "call-chaining" interface pattern,
making the Sugar4j code resemble plain Java code.
Read the full introduction to Sugar4j here.
You will see java code that you have never seen before, I bet.
Sugar4Xml, the buddy of Sugar4j, is used for
writing XML in a similar way. It also makes use of the "treat-array-elements-as-pairs' pattern, which makes writing XML a totally new experience.
Again, you will see Java/XML code that you have never seen before, I bet.