code: public Stemmer getInstance(String name) throws StemmerNotFoundException {
          // logger.debug("stemmerFactory.getInstance: " + name);
          String stemmerClass = initParams.getProperty(name.toUpperCase());
          Stemmer stemmer = null;
          try {
              stemmer = (Stemmer) (Class.forName(stemmerClass)).newInstance();
              // stemmer.set(initParams);
          } catch (Exception e) {
              throw new StemmerNotFoundException(name + " stemmer not found.");
          }
  
          return stemmer;
      }
docs: Returns the <i>id</i> of the specified stemmer and adds the stemmer to
  the lexicon if it is not present yet.
  <p>
  If the lexicon is read only, stemmers not already present in the lexicon
  will not be added and a <code>null</code> <i>id</i> will be returned.
  
  @param name
  the string representation of the stemmer.
  @return the <i>id</i> of the specified stemmer.