+ LuceneIndexReaderResource.class, new Object[]{extResrc} );
}
final IndexReader indexReader = ((LuceneIndexReaderResource) extResrc).getIndexReader();
final IndexSearcher indexSearcher = new IndexSearcher( indexReader );
// Added 'MaxListSize' ohnlp-Bugs-3296301
dict = new LuceneDictionaryImpl( indexSearcher, lookupFieldName, MAX_LIST_SIZE );
} else if ( implType.equals( "jdbcImpl" ) ) {
final String tableName = implEl.getAttributeValue( "tableName" );
if ( !(extResrc instanceof JdbcConnectionResource) ) {
throw new ResourceAccessException( "Expected external resource to be:"
+ JdbcConnectionResource.class, new Object[]{extResrc} );