The reason I want to override the ContainerResponse's write() method is if
the request to the resource is included by our existing web app framework,
we don't want to commit anything to the outputstream, since doing it will
throw the "response already committed" exception.
I tried creating a ContainerResponseFilter, and return a sub class of
ContainerResponse in filter(...) method, but since ContainerResponse
doesn't have defaut constructor, I couldn't extend it.
What should be the right way to do it?
Thanks,
John