// Wrap the invoker worker with the correct context, if needed.
Runnable work = worker;
ContextManager contextMgr = SandeshaUtil.getContextManager(context);
if(contextMgr != null) {
work = contextMgr.wrapWithContext(work, bean.getContext());
}
try {
// Set the lock up before we start the thread, but roll it back
// if we hit any problems
if(worker.getLock().addWork(workId, worker))