@Override
    public void serializeHeader(InvokeContext invokeContext) throws SerializationException {
        if (this.getCustomSerializer() != null) {
            try {
                this.getCustomSerializer().serializeHeader(this);
            } catch (SerializationException e) {
                throw e;
            } catch (Exception e) {
                throw new SerializationException(
                    "Exception caught when serialize header of rpc response command!", e);
            }
        }
    }
Setter method for property <tt>responseObject</tt>.

@param response value to be assigned to property responseObject
src/main/java/com/alipay/remoting/rpc/protocol/RpcResponseCommand.java