code: private void cacheEntryInserted(String key, T value)
      {
          InfinispanCacheEntryEvent<T> event =
              new InfinispanCacheEntryEvent<>(new InfinispanCacheEntry<T>(this, key, value));
  
          T previousValue = this.preEventData.get(key);
  
          if (previousValue != null) {
              if (previousValue != value) {
                  disposeCacheValue(previousValue);
              }
  
              sendEntryModifiedEvent(event);
          } else {
              sendEntryAddedEvent(event);
          }
      }
docs: Dispatch data insertion event.
  
  @param key the entry key.
  @param value the entry value.