code: @Override
      public String addInvalidationListener(String cacheNameWithPrefix, CacheEventListener listener, boolean localOnly) {
          EventService eventService = nodeEngine.getEventService();
          EventRegistration registration;
          if (localOnly) {
              registration = eventService.registerLocalListener(SERVICE_NAME, cacheNameWithPrefix, listener);
          } else {
              registration = eventService.registerListener(SERVICE_NAME, cacheNameWithPrefix, listener);
          }
          return registration.getId();
      }
docs: Registers and {@link com.hazelcast.cache.impl.CacheEventListener} for specified {@code cacheNameWithPrefix}
  
  @param cacheNameWithPrefix the full name of the cache (including manager scope prefix)
  that {@link com.hazelcast.cache.impl.CacheEventListener} will be registered for
  @param listener            the {@link com.hazelcast.cache.impl.CacheEventListener} to be registered
  for specified {@code cacheNameWithPrefix}
  @param localOnly           true if only events originated from this member wants be listened, false if all
  invalidation events in the cluster wants to be listened
  @return the ID which is unique for current registration