private function retrieveConfigurationFromTypoScriptSetup($namespace)
    {
        $data = $this->getCompleteTypoScriptSetup();

        $namespaceParts = explode('.', $namespace);
        foreach ($namespaceParts as $namespacePart) {
            if (!array_key_exists($namespacePart . '.', $data)) {
                $data = [];
                break;
            }

            $data = $data[$namespacePart . '.'];
        }

        /** @var \Tx_Oelib_Configuration $configuration */
        $configuration = GeneralUtility::makeInstance(\Tx_Oelib_Configuration::class);
        $configuration->setData($data);
        return $configuration;
    }