public function getApiAsArray()
    {
        if ($this->useCache()) {
            if ($this->getExtCache()->isApiCached()) {
                return $this->getExtCache()->getApi();
            }
        }

        $api = $this->generateApi();

        if ($this->useCache()) {
            $this->getExtCache()->cacheApi($api);
        }

        return $api;
    }