public function getGateway() {
        if (is_null($this->gateway)) {
            $this->gateway = $this->getZendServiceManager()->get(self::SERVICE_SEARCH_ID)
                ->setServiceLocator($this->getZendServiceManager())
                ->init();
        }
        return $this->gateway;
    }