code: public void afterResponse(Event event) {
  		ChaincodeMessage message = messageHelper(event);
  		try {
  			sendChannel(message);
  			logger.debug(String.format("[%s]Received %s, communicated (state:%s)",
  					shortID(message), message.getType(), fsm.current()));
  		} catch (Exception e) {
  			logger.error(String.format("[%s]error sending %s (state:%s): %s", shortID(message),
  					message.getType(), fsm.current(), e));
  		}
  	}
docs: afterResponse is called to deliver a response or error to the chaincode stub.