@Override
 public void setEntityStream(InputStream input) {
   Preconditions.checkState(
       !inResponseProcessingPhase, ERROR_REQUEST_SET_ENTITY_STREAM_IN_RESPONSE_PHASE);
   super.setEntityStream(input);
 }
 @Override
 public void abortWith(Response response) {
   Preconditions.checkState(!inResponseProcessingPhase, ERROR_REQUEST_ABORT_IN_RESPONSE_PHASE);
   this.abortResponse = response;
 }
 @Override
 public void setSecurityContext(SecurityContext context) {
   Preconditions.checkState(
       !inResponseProcessingPhase, ERROR_REQUEST_SET_SECURITY_CONTEXT_IN_RESPONSE_PHASE);
   this.securityContext = context;
 }