All stream items are contained within transactions, so you could definitely use this method to perform stream item valuation. You would need to iterate over the transaction outputs, identifying stream items and then applying your rules. I'm afraid that's about as much help as we can give, since it's outside our scope to help people modify the source code.