Code generation or Forward Engineering refers to the process of translating (visual) models into source code. The code generation of UML Lab is based on templates which can be adapted easily adpated according to company- or project-specific needs. To describe such template, UML Lab uses the openArchtectureWare-framework together with its template language Xpand, allowing to re-use existing templates for specific target languages or styles.