public void removeResourceListener(final ResourceType resourceType,
      final ResourceListener<?> listener) {
    for (Map.Entry<ResourceType, Set<ResourceListener<?>>> mapEntry : listeners.entrySet()) {
      if ((mapEntry.getKey().id & resourceType.id) != 0) {
        mapEntry.getValue().remove(listener);
      }
    }
  }
Implementation of ResourceManager with additional internal-only methods.
geode-core/src/main/java/org/apache/geode/internal/cache/control/InternalResourceManager.java