protected virtual void UpdateSubscriptions(ISubscriptionService subscriptionService)
 {
     var user = User.Identity as CustomIdentity;
     if (user != null)
     {
         try
         {
             IList<Subscription> subscriptions =
                 subscriptionService.GetFilteredSubscriptionsForUser(user.Id);
             this.Session[Constants.SessionSubscriptionTargets] =
                 subscriptions.Select(p => p.Target.Key).ToArray();
         }
         catch (Exception)
         {
             this.Session[Constants.SessionSubscriptionTargets] = new int[0];
         }
     }
 }