code: public Analyzer getAnalyzer(Locale locale) throws CmsSearchException {
  
          Analyzer analyzer = null;
          String className = null;
  
          CmsSearchAnalyzer analyzerConf = m_analyzers.get(locale);
          if (analyzerConf == null) {
              throw new CmsSearchException(Messages.get().container(Messages.ERR_ANALYZER_NOT_FOUND_1, locale));
          }
  
          try {
              analyzer = getAnalyzer(analyzerConf.getClassName());
          } catch (Exception e) {
              throw new CmsSearchException(Messages.get().container(Messages.ERR_LOAD_ANALYZER_1, className), e);
          }
  
          return analyzer;
      }
docs: Returns an analyzer for the given language.<p>
  
  The analyzer is selected according to the analyzer configuration.<p>
  
  @param locale the locale to get the analyzer for
  @return the appropriate lucene analyzer
  
  @throws CmsSearchException if something goes wrong