@SpecCompliant(spec = "rfc3921bis-08", section = "8.1", status = FINISHED, coverage = COMPLETE),
@SpecCompliant(spec = "rfc3921bis-08", section = "8.3.2", status = NOT_STARTED, coverage = UNKNOWN),
@SpecCompliant(spec = "rfc3921bis-08", section = "4.3", status = NOT_STARTED, coverage = UNKNOWN) })
public void process(Stanza failedToDeliverStanza, List<DeliveryException> deliveryExceptions)
throws DeliveryException {
StanzaErrorCondition stanzaErrorCondition = StanzaErrorCondition.SERVICE_UNAVAILABLE;
StanzaErrorType errorType = StanzaErrorType.CANCEL;
// TODO would it be better to check for the correct stanzas instead of assuming the stanza is wrapped?
if (!(failedToDeliverStanza instanceof XMPPCoreStanza)) {
throw new DeliveryException("could not return to sender");