public void run() throws Exception {
RestoreContextForTasks.DangerousTask t =
new RestoreContextForTasks.DangerousTask();
// Ok now get the task manager
TaskManager tm = (TaskManager) config.getEntry(
LDCOMP,
"taskManager", TaskManager.class);
tm.add(t);
synchronized (t) {
while (!t.done) {
t.wait();
}
}