docs: private Registration getRegistration(EventEnvelope eventEnvelope, String serviceName) {
          EventServiceSegment segment = eventService.getSegment(serviceName, false);
          if (segment == null) {
              if (eventService.nodeEngine.isRunning()) {
                  eventService.logger.warning("No service registration found for " + serviceName);
              }
              return null;
          }
  
          String id = eventEnvelope.getEventId();
          Registration registration = (Registration) segment.getRegistrationIdMap().get(id);
          if (registration == null) {
              if (eventService.nodeEngine.isRunning()) {
                  if (eventService.logger.isFinestEnabled()) {
                      eventService.logger.finest("No registration found for " + serviceName + " / " + id);
                  }
              }
              return null;
          }
  
          if (!eventService.isLocal(registration)) {
              eventService.logger.severe("Invalid target for  " + registration);
              return null;
          }
  
          if (registration.getListener() == null) {
              eventService.logger.warning("Something seems wrong! Subscriber is local but listener instance is null! -> "
                      + registration);
              return null;
          }
  
          return registration;
      }