Properties clusterDictionary = clusterConfigurations.get(pid);
if (clusterDictionary != null) {
clusterDictionary.remove(key);
clusterConfigurations.put(pid, clusterDictionary);
// broadcast the cluster event
ClusterConfigurationEvent event = new ClusterConfigurationEvent(pid);
event.setSourceGroup(group);
eventProducer.produce(event);
}
} else {
throw new IllegalArgumentException("No configuration found in cluster group " + groupName);
}