if ( workOnWriter.isEmpty() ) {
return;
}
log.debug( "Opening an IndexWriter for update" );
ErrorContextBuilder errorContextBuilder = new ErrorContextBuilder();
errorContextBuilder.allWorkToBeDone( workOnWriter );
try {
IndexWriter indexWriter = workspace.getIndexWriter( batchmode, errorContextBuilder );
try {
for ( LuceneWork lw : workOnWriter ) {
lw.getWorkDelegate( worker ).performWork( lw, indexWriter );