/** @deprecated since 0.9.0; for internal use only */
 @Deprecated
 protected Collection<SubscriptionHandle> getAllSubscriptions() {
   SubscriptionTracker tracker = getSubscriptionTracker();
   return (tracker != null)
       ? tracker.getAllSubscriptions()
       : Collections.<SubscriptionHandle>emptyList();
 }
 /**
  * Unsubscribes and clears all managed subscriptions; is called by the owning entity when a policy
  * is removed and should always be called by any subclasses overriding this method
  */
 public void destroy() {
   destroyed.set(true);
   SubscriptionTracker tracker = getSubscriptionTracker();
   if (tracker != null) tracker.unsubscribeAll();
 }