String generateRuntimeSelection(CodeGenContext ctx, JClassType targetClass, String defaultClass,
GwtLocale locale, Map<String, Set<GwtLocale>> localeMap) {
String className = targetClass.getName().replace('.', '_') + '_' + locale.getAsString()
+ "_runtimeSelection";
String pkgName = targetClass.getPackage().getName();
JavaSourceWriterBuilder builder = ctx.addClass(pkgName, className);
if (builder != null) {
writeRuntimeSelection(builder, targetClass, defaultClass, locale, localeMap);
}
return pkgName + '.' + className;
}