text: public static Analyzer CreateAnalyzer(string className){Type clazz = Type.GetType(className);try{return (Analyzer)Activator.CreateInstance(clazz,LuceneVersion.LUCENE_CURRENT);}catch (MissingMethodException ){return (Analyzer)Activator.CreateInstance(clazz);}}