//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("No language specific properties!!!");
}
String templateName = findTemplate(languageSpecificPropertyMap);
if (templateName!=null){
this.xsltStream = clazz.getResourceAsStream(templateName);
}else{
throw new CodeGenerationException("template for this writer is not found");
}
}