protected function setEngine()
    {
        if (null !== $this->engine) {
            $service = sprintf('logboard.%s', $this->engine);
            if ($this->container->has($service)) {
                $this->queryManager->setEngine($this->container->get($service));
            } else {
                throw new BadQueryHttpException(sprintf('The specified Logboard engine "%s" does not exist or is not configured correctly', $service));
            }
        }
    }