CommentTemplate is a code generation extension for the Java language. CommentTemplate takes the important features of existing code generation languages, which are not offered by Java itself already, and implements those as a light-weight extension for Java.