cat.debug("Found validation template in file: " + fileName + " in framework: " + frameworkName + " for taget language: " +
cat.debug("Found validation template in file: " + fileName + " in framework: " + frameworkName + " for target language: " +
    public void loadTemplates() {        resetTemplateCache();        resetTemplateHolder();        int loadedTempaltes = 0;        if (cat.isDebugEnabled()) cat.debug("Starting loading of templates");        // Load all of the files from all of the frameworks.        for (Enumeration e = ERXUtilities.allFrameworkNames().objectEnumerator(); e.hasMoreElements();) {            String frameworkName = (String)e.nextElement();            for (Enumeration ee = templateFileNames().objectEnumerator(); ee.hasMoreElements();) {                String fileName = (String)ee.nextElement();                for (Enumeration eee = targetDisplayLanguages().objectEnumerator(); eee.hasMoreElements();) {                    String targetLanguage = (String)eee.nextElement();                    NSDictionary template = (NSDictionary)ERXExtensions.readPropertyListFromFileInFramework(fileName, frameworkName,                                                                                                           new NSArray(targetLanguage));                    if (template != null) {                        addTemplatesFromDictionary(template, targetLanguage);                        loadedTempaltes++;                        if (!cachingEnabled()) {                            String filePath = WOApplication.application().resourceManager().pathForResourceNamed(fileName,                                                                                                                 frameworkName,                                                                                                                 new NSArray(targetLanguage));                            ERXFileNotificationCenter.defaultCenter().addObserver(defaultFileObserver(),                                                                                  new NSSelector("didSave", ERXConstant.NotificationClassArray),                                                                                  filePath);                        }                        if (cat.isDebugEnabled())                            cat.debug("Found validation template in file: " + fileName + " in framework: " + frameworkName + " for taget language: " +                                      targetLanguage);                    }                }            }        }        // Load all the files from the application.        for (Enumeration e = templateFileNames().objectEnumerator(); e.hasMoreElements();) {            String fileName = (String)e.nextElement();            for (Enumeration ee = targetDisplayLanguages().objectEnumerator(); ee.hasMoreElements();) {                String targetLanguage = (String)ee.nextElement();                NSDictionary template = (NSDictionary)ERXExtensions.readPropertyListFromFileInFramework(fileName, null, new NSArray(targetLanguage));                if (template != null) {                    addTemplatesFromDictionary(template, targetLanguage);                    loadedTempaltes++;                    if (cat.isDebugEnabled())                        cat.debug("Found validation template in file: " + fileName + " for language: " + targetLanguage + " in application");                }                            }        }        if (cat.isDebugEnabled()) cat.debug("Finished loading: " + loadedTempaltes + " templates files.  Structure: " + _templates);    }