code: private void unregisterEventsForResourceBuilder(ResourceBuilderModel resourceBuilder) {
          resourceBuilder.announceEvents().stream()
                  .map(eventSubscribers::get)
                  .filter(Objects::nonNull)
                  .forEach(list -> list.remove(resourceBuilder));
      }
docs: unregisters the events for the ResourceBuilder
  @param resourceBuilder an instance of ResourceBuilder