Code generator functions and the Maven plugin

Have a look at Getting started wiki on Google Code how to use the Maven plugin.
The generator uses Freemarker and XSLT templates to generate the source code. The {@link ModelProcessor} organizes the code generation and it uses the {@link GeneratorTemplate} to see what source files it has to create. The template files are retrieved by {@link ModelFileFinder}. You can change the generated code by adding your own template.
You can also add templates for new functionality, for example when you want to create a jQuery Javascript client. In that case you must change the templates.xml file. This file is handled by {@link GeneratorTemplate}.