code: public static <T> ByteString serialize(final String templateName, T object) {
      StringWriter templateResults = new StringWriter();
      try {
        final Template template = configuration.getTemplate(templateName);
        template.process(object, templateResults);
      } catch (Exception e) {
        throw Throwables.propagate(e);
      }
      return ByteString.encodeUtf8(templateResults.toString());
    }
docs: Call the template engine and return the result.
  
  @param templateName The template name, respective to the "resources" folder
  @param object       The parameter to pass to the template
  @param <T>          The Type of the parameters
  @return The HTML