code: protected String merge(String template, Map<String, Object> values){
          try (ResponseStream stream = new ResponseStreamWriter()) {
          
              TemplateEngineOrchestrator manager = injector.getInstance(TemplateEngineOrchestrator.class);
              TemplateEngine engine = manager.getTemplateEngineForContentType(MediaType.TEXT_HTML);
              
              engine.invoke(
                      context, 
                      ResultBuilder.ok().addAllViewObjects(values).template(template).layout(null), 
                      stream);
              
              
      //        Configuration.getTemplateManager().merge(values, template, stringWriter);
              return stream.getWriter().toString();
          } catch (IOException notPossible) { }
          return "";
      }
docs: TODO TEST this mofo