As part of the below commit, i see that the reference to exchange object is
removed after a call to processWrite which will generate the headers.
When this is done, there could be still data which has to be written. Can
you please help me understand why this reference to exchange is being made
explicitly made to null?