code: def sap_confirmation(self, apdu):
          
          if _debug: StateMachineAccessPoint._debug("sap_confirmation %r", apdu)
  
          if isinstance(apdu, SimpleAckPDU) \
                  or isinstance(apdu, ComplexAckPDU) \
                  or isinstance(apdu, ErrorPDU) \
                  or isinstance(apdu, RejectPDU) \
                  or isinstance(apdu, AbortPDU):
              # find the appropriate server transaction
              for tr in self.serverTransactions:
                  if (apdu.apduInvokeID == tr.invokeID) and (apdu.pduDestination == tr.pdu_address):
                      break
              else:
                  return
  
              # pass control to the transaction
              tr.confirmation(apdu)
  
          else:
              raise RuntimeError("invalid APDU (10)")
docs: This function is called when the application is responding
          to a request, the apdu may be a simple ack, complex ack, error, reject or abort.