//first get the language specific property map
Class clazz = this.getClass();
Map languageSpecificPropertyMap = (Map) ConfigPropertyFileLoader.getLanguageSpecificPropertiesMap().get(this.language);
if (languageSpecificPropertyMap == null) {
throw new CodeGenerationException(CodegenMessages.getMessage("writer.noLangPropertiesExtension"));
}
String templateName = findTemplate(languageSpecificPropertyMap);
if (templateName != null) {
this.xsltStream = clazz.getResourceAsStream(templateName);
} else {
throw new CodeGenerationException(CodegenMessages.getMessage("writer.templateMissing"));
}
}