private function findEditionByEditionFiles()
    {
        $facts = $this->getFacts();
        $edition = '';
        if (is_dir($facts->getEnterpriseEditionRootPath()) === true) {
            $edition = static::ENTERPRISE;
        } elseif (is_dir($facts->getProfessionalEditionRootPath()) === true) {
            $edition = static::PROFESSIONAL;
        } elseif (is_dir($facts->getCommunityEditionSourcePath()) === true) {
            $edition = static::COMMUNITY;
        }

        if ($edition === '') {
            throw new \Exception("Shop directory structure is not setup properly. Edition could not be detected");
        }

        return $edition;
    }