public function addConnection(Base $connection = null, $name = '')
    {
        if($connection instanceof Base)
        {
            if($name !== '')
            {
                $this->connections[$name] = $connection;
            }else{
                $this->connections[] = $connection;
            }
        }else{
            throw new CapsuleInstanceException(sprintf('Connection variable must be a instance of %s', Base::class));
        }
    }