Changed response serialization methods to protected so they may be overridden in subclasses