final void truncate() {
queue.submitSynchronous(lucene::truncate);
}
final void delete() {
try {
<BUG>queue.shutdown();
} finally {</BUG>
lucene.delete();
}
}

final void truncate() {
queue.submitSynchronous(lucene::truncate);
}
final void delete() {
try {
queue.shutdown();
ManagementFactory.getPlatformMBeanServer().unregisterMBean(mbean);
} catch(JMException e) {
logger.error("Error while unregistering Lucene index MBean", e);
} finally {
lucene.delete();
}
}
