/**
     * @see
     *     com.linkedin.databus.client.netty.AbstractHttpResponseProcessorDecorator#startResponse(org.jboss.netty.handler.codec.http.HttpResponse)
     */
    @Override
    public void startResponse(HttpResponse response) throws Exception {
      // check for errors in the response
      _serverErrorClass = response.getHeader(DatabusHttpHeaders.DATABUS_ERROR_CAUSE_CLASS_HEADER);
      _serverErrorMessage =
          response.getHeader(DatabusHttpHeaders.DATABUS_ERROR_CAUSE_MESSAGE_HEADER);
      if (null == _serverErrorClass) {
        _serverErrorClass = response.getHeader(DatabusHttpHeaders.DATABUS_ERROR_CLASS_HEADER);
        _serverErrorMessage = response.getHeader(DatabusHttpHeaders.DATABUS_ERROR_MESSAGE_HEADER);
      }
      if (null != _serverErrorClass) {
        if (null != _parent) {
          _parent
              .getLog()
              .error(
                  "server error detected class="
                      + _serverErrorClass
                      + " message="
                      + _serverErrorMessage);
        }
      }

      super.startResponse(response);
      if (null != _parent) _parent.addConnectionTracking(response);
    }
    /* (non-Javadoc)
     * @see com.linkedin.databus.client.netty.HttpResponseProcessorDecorator#addTrailer(org.jboss.netty.handler.codec.http.HttpChunkTrailer)
     */
    @Override
    public void addTrailer(HttpChunkTrailer trailer) throws Exception {
      // check for errors in the middle of the response
      if (null == _serverErrorClass) {
        _serverErrorClass = trailer.getHeader(DatabusHttpHeaders.DATABUS_ERROR_CAUSE_CLASS_HEADER);
        _serverErrorMessage =
            trailer.getHeader(DatabusHttpHeaders.DATABUS_ERROR_CAUSE_MESSAGE_HEADER);
        if (null == _serverErrorClass) {
          _serverErrorClass = trailer.getHeader(DatabusHttpHeaders.DATABUS_ERROR_CLASS_HEADER);
          _serverErrorMessage = trailer.getHeader(DatabusHttpHeaders.DATABUS_ERROR_MESSAGE_HEADER);
        }
        if (null != _serverErrorClass) {
          if (null != _parent) {
            _parent
                .getLog()
                .error(
                    "server error detected class="
                        + _serverErrorClass
                        + " message="
                        + _serverErrorMessage);
          }
        }
      }

      super.addTrailer(trailer);
    }
 /**
  * @see
  *     com.linkedin.databus.client.netty.AbstractHttpResponseProcessorDecorator#finishResponse()
  */
 @Override
 public void finishResponse() throws Exception {
   try {
     super.finishResponse();
   } finally {
     stopReadTimeoutTimer();
   }
 }