FileTemplate (@NotNull @NonNls String templateName) { FileTemplateBase template = (FileTemplateBase)findInternalTemplate(templateName); if (template == null) { template = (FileTemplateBase)getJ2eeTemplate(templateName); // Hack to be able to register class templates from the plugin. template.setReformatCode(true); } return template; }