// Get the generated file header if there is one
readFileHeader(parser.getTheConfig(), currConfig.getLatestVersion());
if (generators != null){
while(generators.hasNext()){
Generator g = generators.next();
g.getGenerator().setProgressStream(System.out);
g.getGenerator().setFileHeader(fileHeader);
FileUpdateManager.instance().reportProgress(System.out);
FileUpdateManager.instance().reportErrors(System.err);
FileUpdateManager.instance().generationStarting();
g.getGenerator().generateCode(parser.getTheConfig(), currConfig.getLatestVersion(), configFinder, readSchemas);
FileUpdateManager.instance().generationComplete();
}
}
} catch (ResultException e) {