if (configuration == null) {
return;
}
ConfigurationData[] filters = configuration.getSubElements("filter");
logger.debug("Configuring " + filters.length + " filters");
TrivialTokenFilter trivialTokenFilter = new OrTrivialTokenFilter();
((ConfigurableTrivialTokenFilter) trivialTokenFilter).configure(this, configuration);
getTokenIndex().setExternalFilter(trivialTokenFilter);
for (Object filterObject : filters) {
ConfigurationData filterDef = (ConfigurationData) filterObject;
String className = filterDef.getValue("class");