code: void removeResourceModels(final Bundle bundle) {
          this.logger.info("Removing resource models of bundle " + displayNameOf(bundle) + "...");
          MatchedBundlesPredicate sourcesWithBundles = new MatchedBundlesPredicate(bundle);
          for (Collection<OsgiModelSource<?>> values : this.typeNameToModelSourcesMap.values()) {
              CollectionUtils.filter(values, sourcesWithBundles);
          }
          clearLookupCaches();
          this.logger.info("Removed " + sourcesWithBundles.getFilteredElements()
                  + " resource models of bundle " + displayNameOf(bundle) + "...");
      }
docs: Removes all resource models originating from the given bundle from this registry.
  
  @param bundle must not be <code>null</code>.