public function create(Description $description)
    {
        return new CategoryEntity(
            new Identifier($description->getMandatoryProperty('id')),
            $description->getMandatoryProperty('name'),
            $this->getIconUrl($description),
            (bool)$description->getOptionalProperty('primary', false)
        );
    }