code: public String render(Template template, GlobalScope... extraGlobalScopes) throws IOException {  
      StringWriter out = new StringWriter();
      render(template, out, extraGlobalScopes);
      return out.toString();
    }
docs: Renders given template and returns rendered text.
  
  @param template Previously loaded template to render
  @param extraGlobalScopes Any extra global scopes to make available
  @return Rendered text
  @throws IOException