code: public static final TermFactory getTermFactory() {
  		if (tf == null) {
  			try {
  				@SuppressWarnings("unchecked")
  				Class<? extends TermFactory> clazz = (Class<? extends TermFactory>) Class
  						.forName(DEFAULT_TERM_FACTORY);
  				Method m = clazz.getMethod("getInstance");
  				registerTermFactory((TermFactory) m.invoke(null));
  				log.debug("Retrived {} as default TermFactory implementation.",
  						DEFAULT_TERM_FACTORY);
  			} catch (Exception e) {
  				log.error("Unable to get TermFactory from default", e);
  				throw new RuntimeException(
  						"No TermFactory implementation registered!");
  			}
  		}
  		return tf;
  	}
docs: Returns TermFactory registered in step above
  
  @return TermFactory registered