code: public final void generate()
              throws Exception
      {
          VelocityContext context = createAndPopulateContext();
  
          Writer writer = WriterFactory.newWriter( config.getOutputFile(), config.getEncoding() );
  
          try
          {
              velocityTemplate.merge( context, writer );
              writer.flush();
          }
          catch ( Exception e )
          {
              throw new Exception(
                      "Could not generate the template " + velocityTemplate.getName() + ": " + e.getMessage(), e );
          }
          finally
          {
              writer.close();
          }
  
      }
docs: Generate the JNLP file.
  
  @throws Exception TODO