add java version based onSimpleTemplateEngine