private void SetNotificationMessage(MessageItem notificationMessage, UnifiedPolicyNotificationBase notification)
 {
     notificationMessage.PropertyBag[MessageItemSchema.UnifiedPolicyNotificationId] = notification.Identity.ToString();
     using (Stream stream = notificationMessage.PropertyBag.OpenPropertyStream(MessageItemSchema.UnifiedPolicyNotificationData, PropertyOpenMode.Create))
     {
         byte[] array = notification.GetWorkItem().Serialize();
         stream.Write(array, 0, array.Length);
     }
 }