public function setServiceLocator(ServiceLocatorInterface $serviceManager)
    {
        if (!$this->dbAdapter instanceof DbAdapter) {
            $this->dbAdapter = $serviceManager->getServiceLocator()->get($this->dbAdapter);
        }
    }