private function computeEndpoint(): UrlInterface
    {
        if (!$this->transactions->isOpened()) {
            return Url::fromString('/db/data/transaction/commit');
        }

        return $this->transactions->current()->endpoint();
    }