And as I found, there weren't any requirement to close the streams, the usages were mainly in a context where a servlet response object was used, where in that case, we anyway should not close the stream, and other places already had flush and close operations after the methods in question was called, which is actually what we are avoiding with this fix, to not to have close -> flush -> close