public static function getBundle(string $bundleId)
    {
        if (!array_key_exists($bundleId, self::$runtimeBundles)) {
            return null;
        }
        
        $bundle = &self::$runtimeBundles[$bundleId];
        $bundle->link = Request::getLocationUrl(Output::DEFAULT_BUNDLE_PATH_PREFIX . '/' . $bundleId);
        if (empty($bundle->directory)) {
            $bundle->directory = Xentriq::getActiveContentDirectory();
        }
        
        return $bundle;
    }