public function persistUpsertDto(TemplateEntityDto $dto): TemplateEntityInterface
    {
        $entity = $this->convertUpsertDtoToEntity($dto);
        $this->saver->save($entity);

        return $entity;
    }