if (subscription == null) {
throw new SubscriberNotFoundException("Subscription not found. arn=" + subscriptionArn);
}
CNSTopicAttributes topicAttributes = getTopicAttributes(subscription.getTopicArn());
if (topicAttributes != null) {
CNSTopicDeliveryPolicy topicEffectiveDeliveryPolicy = topicAttributes.getEffectiveDeliveryPolicy();
if (topicEffectiveDeliveryPolicy != null) {
if (topicEffectiveDeliveryPolicy.isDisableSubscriptionOverrides() || subscriptionAttributes.getDeliveryPolicy() == null) {
CNSSubscriptionDeliveryPolicy effectiveDeliveryPolicy = new CNSSubscriptionDeliveryPolicy();