code: public void init(ServletConfig config) throws ServletException {
          super.init(config);
          this.engine = initTemplateEngine(config);
          if (engine == null) {
              throw new ServletException("Template engine not instantiated.");
          }
          String value = config.getInitParameter("generated.by");
          if (value != null) {
              this.generateBy = Boolean.valueOf(value);
          }
          value = config.getInitParameter(GROOVY_SOURCE_ENCODING);
          if (value != null) {
              this.fileEncodingParamVal = value;
          }
          log("Servlet " + getClass().getName() + " initialized on " + engine.getClass());
      }
docs: Initializes the servlet from hints the container passes.
  <p>
  Delegates to sub-init methods and parses the following parameters:
  <ul>
  <li> <tt>"generatedBy"</tt> : boolean, appends "Generated by ..." to the
  HTML response text generated by this servlet.
  </li>
  </ul>
  
  @param config Passed by the servlet container.
  @throws ServletException if this method encountered difficulties
  @see TemplateServlet#initTemplateEngine(ServletConfig)