fixed for Lucene 3.5
ECMS-4514 fix some probme with tearDown in restatom