public function countErrorsForProcess(LifecycleEventArgs $event)
    {
        $entityManager = $event->getEntityManager();
        $repository    = $entityManager->getRepository(get_class($this));

        $repository->countByProcessIdAndStatus(
            $this->getProcess(),
            [self::STATUS_FAILED, self::STATUS_ABORTED],
            72,
            true
        );
    }