public function setService($id)
    {
        $id = filter_var($id, FILTER_SANITIZE_NUMBER_INT);
        if (empty($id)) {
            throw new InternalServerErrorException('No service id provided.');
        }

        if (empty($this->service = ServiceManager::getServiceNameById($id))) {
            throw new InternalServerErrorException('No alternate db service found with id ' . $id);
        }
    }