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);
}
}