code: private void unregisterResourceIDForResourceBuilder(ResourceBuilderModel resourceBuilder) {
          List<? extends ResourceModel> resources = resourceBuilder.announceResources();
          resources.stream().map(resource -> resourceIDs.get(resource.getResourceID()))
                  .filter(Objects::nonNull)
                  .forEach(list -> list.remove(resourceBuilder));
      }
docs: Unregisters all ResourceIDs for the ResourceBuilders
  
  @param resourceBuilder an instance of ResourceBuilder