public function getDocumentFolderBySlug($slug)
    {
        if ($slug === '/') {
            $path = $slug;
        } else {
            $path = '/' . $slug;
        }

        return $this->repository->getContentRepository()->getDocumentByPath($this->repository, $path, 'unpublished');
    }