Adjusting Rabema to new stream module.

You can use `writeRecords(outSam, records)` here