use stream.Transform instead of Through