private function extendResponseItem($item)
    {
        $handlerFactory = $this->get('task.handler.factory');
        $handler = $handlerFactory->create($item['handlerClass']);

        if ($handler instanceof AutomationTaskHandlerInterface) {
            $item['taskName'] = $handler->getConfiguration()->getTitle();
        }

        $task = $this->get('task.repository.task')->findByUuid($item['taskId']);
        $executions = $this->get('task.repository.task_execution')->findByTask($task);
        if (0 < count($executions)) {
            $item['status'] = $executions[0]->getStatus();
        }

        unset($item['taskId']);

        return $item;
    }