code: protected SpellChecker createSpellChecker()
     {
        // spell checker config
        SpellChecker spCheck = null;
        if (spellCheckerClass != null)
        {
           try
           {
              spCheck = spellCheckerClass.newInstance();
              spCheck.init(SearchIndex.this, spellCheckerMinDistance, spellCheckerMorePopular);
           }
           catch (IOException e)
           {
              log.warn("Exception initializing spell checker: " + spellCheckerClass, e);
           }
           catch (InstantiationException e)
           {
              log.warn("Exception initializing spell checker: " + spellCheckerClass, e);
           }
           catch (IllegalAccessException e)
           {
              log.warn("Exception initializing spell checker: " + spellCheckerClass, e);
           }
        }
        return spCheck;
     }
docs: Creates a spell checker for this query handler.
  
  @return the spell checker or <code>null</code> if none is configured or
  an error occurs.