/** * @param sub The sub configuration to add to this configuration * @return The added config, for chaining */ public MutableConfig addSubConfig(MutableConfig sub) { theSubConfigs = prisms.util.ArrayUtils.add(theSubConfigs, sub); sub.theParent = this; sub.addListener(theSubConfigListener); return sub; }