final int length = analyzerDef.filters().length;
final int charLength = analyzerDef.charFilters().length;
TokenFilterFactory[] filters = new TokenFilterFactory[length];
CharFilterFactory[] charFilters = new CharFilterFactory[charLength];
ResourceLoader resourceLoader = new HibernateSearchResourceLoader();
for ( int index = 0; index < length; index++ ) {
TokenFilterDef filterDef = analyzerDef.filters()[index];
filters[index] = ( TokenFilterFactory ) instantiate( filterDef.factory() );
filters[index].init( getMapOfParameters( filterDef.params(), luceneMatchVersion ) );
if ( filters[index] instanceof ResourceLoaderAware ) {