private function createEnvelope($sessionCode, SignedDocInfo $signedDocInfo)
    {
        $envelope = new Envelope(
            new Session($sessionCode),
            $this->createAndTrack($signedDocInfo->DataFileInfo, 'KG\DigiDoc\File'),
            $this->createAndTrack($signedDocInfo->SignatureInfo, 'KG\DigiDoc\Signature')
        );

        $this->tracker->add($envelope);

        return $envelope;
    }