code: protected CodeGenerator getGenerator()
      {
          if (_generator == null)
          {
              //
              // Locate the class that wraps the Velocity code generation process
              //
              AnnotationProcessorEnvironment env = getAnnotationProcessorEnvironment();
  
              try 
              {
                  _generator = new VelocityGenerator(env);
              }
              catch (Exception e)
              {
                  throw new CodeGenerationException("Unable to create code generator", e); 
              }
          }
          return _generator;
      }
docs: Returns the CodeGenerator instance supporting this processor, instantiating a new
  generator instance if necessary.