public function store($path, &$data) {
        $ssh = $this->getSshSession();
        $sftp = ssh2_sftp($ssh);

        $sftpStream = @fopen('ssh2.sftp://' . $sftp . $path, 'wb');

        if (!$sftpStream) {
            throw new Exception("Could not open remote file: $path");
        }

        if (@fwrite($sftpStream, $data) === false) {
            throw new Exception("Could not store {$path} by SFTP on " . $this->getEnvironment());
        }

        fclose($sftpStream);
        return true;
    }