private function save(ContentRepository $contentRepo, Content $content, $type, $legacyType)
    {
        try {
            $contentRepo->save($content);
            $this->dispatch($content, $type, $legacyType);
        } catch (DBALException $e) {
            $contentTypeName = $contentRepo->getClassMetadata()->getBoltName();
            $message = "Timed update of records for $contentTypeName failed: " . $e->getMessage();

            $this->systemLogger->critical($message, ['event' => 'exception', 'exception' => $e]);
        }
    }