public function postLoad(Permission $permission, LifecycleEventArgs $event)
    {
        $item = $this->permissionCollection->get($permission->getKey());

        if (!$item) {
            throw new UnexpectedValueException('Permission "'.$permission->getKey().'" does not exist.');
        }

        $permission
            ->setType($item->getType())
            ->setValue($item->getValue());
    }