}
if (event instanceof TaskCompletedEvent) {
synchronized ( this.managers ) {
WorkItemManager manager = this.managers.get(taskId);
if (manager != null) {
GetTaskResponseHandler getTaskResponseHandler =
new GetCompletedTaskResponseHandler(manager, client);
client.getTask(taskId, getTaskResponseHandler);
}
}
} else {