The word template library allows you to generate an office word document from an office word document serving as a template. It is based on Apache POI and Apache FreeMarker.
The elements of the template language are those of Freemarker. Currently only interpolations are recognized and processed (see the Freemarker manual).
To build the word document, the method to use is WordTemplateService.produceDocument().