protected function findSitesByNodeNamePattern($siteNodePattern)
    {
        return array_filter(
            $this->siteRepository->findAll()->toArray(),
            function ($site) use ($siteNodePattern) {
                return fnmatch($siteNodePattern, $site->getNodeName());
            }
        );
    }