JAX-RS with TemplateEngine