for (Element e : elements) {
unsubscribeTokens.add(e.attributeValue("token"));
}
for (String token : unsubscribeTokens) {
RemoteSubscriber subscriber = SubscriptionRegistry.instance().
getSubscription(token);
if (subscriber != null)
subscriber.unsubscribe();
}
}
finally
{
Lifecycle.endRequest();