I've made great experiences with Xtend as a templating engine for generating code:
http://www.eclipse.org/xtend/
I'm using it to generate all the row value expression related stuff in jOOQ, where similar code has to be duplicated, such as Record1, Record2, Record3, etc...
Do you see any potential in using it for fluflu?