public function handleRestore(RestoreEvent $event)
    {
        $document = $event->getDocument();
        if (!$document instanceof ChildrenBehavior) {
            return;
        }

        $page = 1;
        foreach ($document->getChildren() as $child) {
            if (!$child instanceof PageBehavior) {
                continue;
            }

            $childNode = $this->documentInspector->getNode($child);
            $childNode->setProperty($this->propertyEncoder->systemName(static::FIELD), ++$page);
        }
    }