public function getReadConnection(Server $preferredServer = null) : IConnection
    {
        if ($preferredServer !== null) {
            $this->addServer('custom', $preferredServer);
            $this->setReadConnection($preferredServer);
        } elseif ($this->readConnection == null) {
            $this->setReadConnection();
        }

        return $this->readConnection;
    }