}
private class TaskCompletedHandler extends AbstractBaseResponseHandler implements EventResponseHandler {
public void execute(Payload payload) {
TaskEvent event = ( TaskEvent ) payload.get();
long taskId = event.getTaskId();
GetTaskResponseHandler getTaskResponseHandler =
new GetCompletedTaskResponseHandler();
client.getTask(taskId, getTaskResponseHandler);
}