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 ) ) ; }
Unregisters all ResourceIDs for the ResourceBuilders