So you will pass the response to the post-processor ? :-)

I guess it is OK to always return byte[] and use response.write(byte[]) in the caller. Just keep in mind that once started writing bytes you should not try to write Strings later.