for (MetaClass templatedAnnotatedClass : templatedAnnotatedClasses) {
String templateFileName = TemplatedCodeDecorator.getTemplateFileName(templatedAnnotatedClass);
String templateFragment = TemplatedCodeDecorator.getTemplateFragmentName(templatedAnnotatedClass);
String i18nPrefix = TemplateUtil.getI18nPrefix(templateFileName);
Context subContext = new Context();
subContext.put(PREFIX, i18nPrefix);
if (templateFragment != null && templateFragment.trim().length() > 0) {
subContext.put(FRAGMENT, templateFragment);
}
final URL resource = getClass().getClassLoader().getResource(templateFileName);
contexts.put(resource, subContext);
}
return new Context();
}