public function createContentItem($contentTypeIdentifier, array $fields)
    {
        $draft = $this->createDraft($contentTypeIdentifier, $fields);

        $this->currentContent = $this->repository->sudo(
            function () use ($draft) {
                return $this->repository->getContentService()->publishVersion($draft->versionInfo);
            }
        );

        $this->currentDraft = null;

        return $this->currentContent;
    }