public function getExtension($ext)
    {
        $name = "Extension\\" . $ext;

        if (isset($this->extensions[$name])) {
            return $this->extensions[$name];
        }

        try {
            $extension = $this->loadExtension($name);
            if (!$this->notInit) {
                $extension->OWeb_Init();
            }

        } catch (\Exception $exception) {
            throw new \OWeb\manage\exceptions\Extension("YOu can't get this extension. It hasn't been already loaded and can't be loaded now", 0, $exception);
        }

        return $extension;

    }