public function createReference(Site $site, NodeInterface $node)
    {
        $nodeId = $node->id();
        $siteId = $site->getId();

        $this
            ->db
            ->merge('ucms_site_node')
            ->key(['nid' => $nodeId, 'site_id' => $siteId])
            ->execute()
        ;

        if (!in_array($siteId, $node->ucms_sites)) {
            $node->ucms_sites[] = $siteId;
        }

        $this->eventDispatcher->dispatch(NodeEvents::ACCESS_CHANGE, new ResourceEvent('node', [$nodeId]));
        $this->eventDispatcher->dispatch(SiteEvents::EVENT_ATTACH, new SiteAttachEvent($siteId, $nodeId));
    }