factory.addImport("com.google.gwt.core.client.GWT");
factory.addImport("com.google.gwt.i18n.client.LocaleInfo");
factory.addImport("com.google.gwt.i18n.client.constants.NumberConstants");
factory.addImport("com.google.gwt.i18n.client.constants.NumberConstantsImpl");
factory.addImport("com.google.gwt.i18n.client.constants.DateTimeConstants");
factory.addImport("com.google.gwt.i18n.client.constants.DateTimeConstantsImpl");
SourceWriter writer = factory.createSourceWriter(context, pw);
writer.println("@Override");
writer.println("public String getLocaleName() {");
if (runtimeLocales.isEmpty()) {
writer.println(" return \"" + locale + "\";");