public static function add($connection, $setAsDefault = false)
    {
        $connectionName = $connection->getName();
        self::$connectionList[$connectionName] = $connection;
        if ($setAsDefault === true) {
            self::setDefault($connectionName);
        }
    }