/**
* Stop the background processing thread.
*/
private void threadStop() {
Logger logger = container.getLogger();
if (logger != null)
logger.log(threadName + ": Stopping");
stopped = true;
try {
threadSync.wait(5000);
} catch (InterruptedException e) {