TokenFilterFactory[] filters = new TokenFilterFactory[length];
CharFilterFactory[] charFilters = new CharFilterFactory[charLength];
for ( int index = 0; index < length; index++ ) {
TokenFilterDef filterDef = analyzerDef.filters()[index];
filters[index] = ( TokenFilterFactory ) instantiate( filterDef.factory() );
final Map<String, String> mapOfParameters = getMapOfParameters( filterDef.params(), luceneMatchVersion );
filters[index].init( mapOfParameters );
injectResourceLoader( filters[index], defaultResourceLoader, mapOfParameters );
}
for ( int index = 0; index < charFilters.length; index++ ) {
CharFilterDef charFilterDef = analyzerDef.charFilters()[index];