* Add a config element as a specific class. Usually this is done to add a
* subclass as one of it's parent classes.
*/
public void addConfigElement(ConfigElement config, Class asClass) {
if (config != null) {
ConfigElement current = (ConfigElement) configSet.get(asClass);
if (current == null) {
configSet.put(asClass, cloneIfNecessary(config));
} else {
current.addConfigElement(config);
}
}
}