public function getApi()
    {
        if ($this->api === null) {
            $this->api = new ExtDirectApi($this->useCache(), $this->getApplicationPath(), $this->getApplicationNameSpace());
        }
        return $this->api;
    }