protected function setName($entity)
    {
        if (method_exists($entity, 'getName')) {
            $this->name = $entity->getName();

            return;
        }

        if ($entity->offsetExists('name')) {
            $this->name = $entity->name;

            return;
        }

        throw ItemNameMissing::for($this->modelType);
    }