IBeansConfig autoDetectedConfig = autoDetectedConfigs.remove(configName);
if (config != null) {
config.unregisterEventListener(eventListener);
}
if (autoDetectedConfig != null) {
autoDetectedConfig.unregisterEventListener(eventListener);
}
String locatorId = locatorByAutoDetectedConfig.remove(configName);
if (locatorId != null && autoDetectedConfigsByLocator.containsKey(locatorId)) {
autoDetectedConfigsByLocator.get(locatorId).remove(configName);
}