String qualName = packageName + "." + superClassName;
ClassSourceFileComposerFactory factory = new ClassSourceFileComposerFactory(
packageName, superClassName);
factory.setSuperclass(targetClass.getQualifiedSourceName());
factory.addImport("com.google.gwt.core.client.JavaScriptObject");
SourceWriter writer = factory.createSourceWriter(context, pw);
writer.println("private JavaScriptObject nativeDisplayNames;");
writer.println();
writer.println("@Override");
writer.println("public String[] getAvailableLocaleNames() {");
writer.println(" return new String[] {");