converted AsciidocTemplateEngine.java to .groovy