/// <summary>
 /// Removes a root notifier previously added with AddRootNotifier.
 /// </summary>
 /// <param name="notifier">The notifier.</param>
 protected virtual void RemoveRootNotifier(NodeState notifier)
 {
     if (m_rootNotifiers != null)
     {
         for (int ii = 0; ii < m_rootNotifiers.Count; ii++)
         {
             if (Object.ReferenceEquals(notifier, m_rootNotifiers[ii]))
             {
                 notifier.OnReportEvent = null;
                 notifier.RemoveReference(ReferenceTypeIds.HasNotifier, true, ObjectIds.Server);
                 m_rootNotifiers.RemoveAt(ii);
                 break;
             }
         }
     }
 }