Map<String, Map<String, String>> indexedI18nValues = new HashMap<String, Map<String, String>>();
for (MetaClass templatedAnnotatedClass : templatedAnnotatedClasses) {
String templateFileName = TemplatedCodeDecorator.getTemplateFileName(templatedAnnotatedClass);
String templateBundleName = templateFileName.replaceAll(".html", ".json").replace('/', '_');
final TemplateChain chain = TemplateChain.getInstance();
chain.visitTemplate(templateFileName, templatedAnnotatedClass);
Map<String, String> i18nValues = chain.getResult(templateFileName, VALUES);
allI18nValues.putAll(i18nValues);
Map<String, String> templateI18nValues = indexedI18nValues.get(templateBundleName);
if (templateI18nValues == null) {
indexedI18nValues.put(templateBundleName, i18nValues);