public GeneratedCodeMap generateStaticParser(StringBuilder stringBuilder, String packageName,
String className, Collection<GeneratedCodeMap> basePackages) {
JavaCodeGenerator generator = new JavaCodeGenerator.Impl();
GlobalScope globalScope = generator.newGlobalScope(type2TypeHandler.values(), basePackages);
FileScope fileScope = globalScope.newFileScope(stringBuilder);
fileScope.startLine("// This is a generated source.\n");
fileScope.startLine("// See " + this.getClass().getName() + " for details\n");
fileScope.append("\n");
fileScope.startLine("package " + packageName + ";\n");