// XAB procedure for casc subscriptions
Set<String> subscriptionIds = subscription.getCscSubscriptionIds().keySet();
for (String id : subscriptionIds) {
abortMessage.setSessionId(id);
this.cascadedSCAbortSubscription(cascClient, abortMessage, new CscAbortSubscriptionCallbackForCasc(request,
subscription), AppContext.getBasicConfiguration().getSrvAbortOTIMillis());
}
subscription.getCscSubscriptionIds().clear();
} else {
// normal XAB procedure
abortMessage.setSessionId(subscription.getId());
SubscriptionLogger.logAbortSubscription((Subscription) session, reason);
this.cascadedSCAbortSubscription(cascClient, abortMessage, new CscAbortSubscriptionCallbackForCasc(request,
subscription), AppContext.getBasicConfiguration().getSrvAbortOTIMillis());
}
} else {
LOGGER.error("session which is in relation with a cascadedSC timed out - should nerver occur");
}