docs: private void flushPublishersOnNodeShutdown() {
          Node node = ((NodeEngineImpl) this.nodeEngine).getNode();
          LifecycleServiceImpl lifecycleService = node.hazelcastInstance.getLifecycleService();
          lifecycleService.addLifecycleListener(event -> {
              if (SHUTTING_DOWN == event.getState()) {
                  publisherContext.flush();
              }
          });
      }