* @see org.olat.core.configuration.OLATModule#destroy()
*/
public void destroy() {
//TODO: not nice - check is Local, create two versions of searchServiceImpl via spring config
if (SearchServiceImpl.getInstance().isLocal()) {
SearchServiceStatus status = SearchServiceImpl.getInstance().getStatus();
String statusStr = status.getStatus();
if(statusStr.equals(FullIndexerStatus.STATUS_RUNNING)){
//stop only if running.
SearchServiceImpl.getInstance().stop();
}
}