/**
  * Helper method which performs an EJB call and gets the subscription value object for the given
  * subscription key.
  *
  * @param key the (hex)-key of the subscription.
  * @return the subscription value object.
  */
 private VOSubscription getSubscription(ServiceAccess serviceAccess, String key) {
   SubscriptionService subscriptionService = serviceAccess.getService(SubscriptionService.class);
   List<VOUserSubscription> list = subscriptionService.getSubscriptionsForCurrentUser();
   if (list != null) {
     for (VOSubscription vo : list) {
       if (key.equals(Long.toHexString(vo.getKey()))) {
         return vo;
       }
     }
   }
   return null;
 }