I_AdminSession receiver = ((ServerScope)glob).getAuthenticate().getSubjectInfoByName(dispatchManager.getSessionName()).getSessionByPubSessionId(dispatchManager.getSessionName().getPublicSessionId());
String[] subIds = receiver.getSubscriptions();
if (log.isLoggable(Level.FINE))
log.fine(receiver.getLoginName() + "/" + receiver.getPublicSessionId() + " toPolling, removing " + subIds.length + " subscriptions");
for (int i=0; i<subIds.length; i++) {
receiver.unSubscribe(Constants.SUBSCRIPTIONID_URL_PREFIX+subIds[i], null);
}
} catch (Throwable e) {
e.printStackTrace();
}
}