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