int i = 0;
for (UpdatedResource resource : notification.getUpdatedResources()) {
//noinspection UnnecessaryParentheses,ValueOfIncrementOrDecrementUsed
log.info("Processing update notification " + (++i) + " for subscription " + resource.getSubscriptionId());
LocalSubscriptionDetail sub = subscriptionStore.getBySubscriptionId(resource.getSubscriptionId());
if (null == sub) {
log.info("Nothing known about subscription " + resource.getSubscriptionId() + ", creating placeholder.");
sub = new LocalSubscriptionDetail(
new SubscriptionDetail(
subscriberId,
resource.getSubscriptionId(),
resource.getOwner(),
resource.getCollectionType()
),
false
);
subscriptionStore.save(sub);
}
sub.setLastUpdateNotificationDate(new Date());
APIResourceCredentials credentials = credentialsCache.getResourceCredentials(new LocalUserDetail(resource.getSubscriptionId()));
String cacheKeyWithUserId =
APIUtil.constructFullUrl(