Yes, precisely. I've started with a simpler interface which didn't used response object. But later, as Martin said, I've realized that such a solution could be a problem with MIME types other than textual. Then, I decided to move the code needed to write the final value to the response into the interface implementations.