public function getOverlay($tableName, $record)
    {
        if ($tableName === 'pages') {
            return $this->tsfe->sys_page->getPageOverlay($record, $this->tsfe->sys_language_uid);
        }

        return $this->tsfe->sys_page->getRecordOverlay($tableName, $record, $this->tsfe->sys_language_uid);
    }