Using velocity templates for method generation instead of plain java string templates