code: private void registerEventsForResourceBuilder(ResourceBuilderModel resourceBuilder) {
          List<? extends EventModel<?>> events = resourceBuilder.announceEvents();
          if(events == null) return;
          events.stream()
                  .filter(event -> event.getAllInformations() != null)
                  .flatMap(event -> event.getAllInformations().stream())
                  .map(this::getRegisteredListForEvent)
                  .forEach(list -> list.add(resourceBuilder));
      }
docs: Registers the events for the ResourceBuilder
  
  @param resourceBuilder an instance of ResourceBuilder