public function setEngine($engine) {
        if (!in_array($engine, $this->getSupportedEngines())) {
            throw new EngineNotSupportedException(sprintf('Engine [%s] is not supported', $engine));
        }

        $this->engine = $engine;
        $this->changeBaseApi();
    }