docs: protected void generateFile(File file,
                                  String templateName,
                                  VelocityContext context) throws Exception
      {
          Writer writer = new BufferedWriter(new FileWriter(file));
          try
          {
              Velocity.mergeTemplate(classpathPrefix + templateName,
                                     ENCODING,
                                     context,
                                     writer);
              writer.flush();
          }
          finally
          {
              writer.close();
          }
      }