@After
 public void tearDown() throws Exception {
   super.tearDown();
   reader.close();
   writer.close();
   ifdService.clear();
   SearchContext.removeCurrent();
 }
 @After
 public void tearDown() throws Exception {
   super.tearDown();
   if (readerContext != null) {
     readerContext.reader().close();
   }
   writer.close();
 }