public void EntitiesChangeInterceptor(DSPResourceWithCollectionProperty resource, UpdateOperations operations)
 {
     if (InterceptorServiceDefinition.Current.EnableChangeInterceptors)
     {
         Assert.IsFalse(InterceptorServiceDefinition.Current.ChangeInterceptorCalledOnEntityId.HasValue, "Change interceptor called more than once.");
         if (operations == UpdateOperations.Add)
         {
             // The new resource has no properties set on it yet, so assume the "new" one - 42
             InterceptorServiceDefinition.Current.ChangeInterceptorCalledOnEntityId = 42;
         }
         else
         {
             InterceptorServiceDefinition.Current.ChangeInterceptorCalledOnEntityId = (int)resource.GetValue("ID");
         }
     }
 }