protected function registerPathsInFinder(Factory $view, FileViewFinder $finder, TenantParticipant $tenant)
    {
        $paths = [];
        $this->addPathToViewPaths($paths, $tenant->getDomain());
        $this->addPathToViewPaths($paths, $tenant->getTenantOwner()->getDomain());
        $paths = array_merge($paths, $finder->getPaths());

        $finder = $this->createViewFinder($finder, $paths);

        // replace ViewFinder in ViewManager with new instance with ordered paths
        $view->setFinder($finder);

        return $paths;
    }