SubscriptionManager manager = getSubscriptionManager();
if (manager != null) {
for (FeedProvider feed:removedSubscriptions) {
LOGGER.debug("removing subscription for {0}", feed.getSubscriptionId());
manager.unsubscribe(feed.getSubscriptionId());
activeFeeds.remove(feed);
}
List<String> newlyAddedSubscriptionIds = new ArrayList<String> (newSubscriptions.size());
for (FeedProvider feed:newSubscriptions) {