}
Collection<ConfigurationListener> listeners = defaultConfig.getConfigurationListeners();
// find the listener and remove it so that DynamicProperty will no longer receives
// callback from the default configuration source
ConfigurationListener dynamicPropertyListener = null;
for (ConfigurationListener l: listeners) {
if (l instanceof ExpandedConfigurationListenerAdapter
&& ((ExpandedConfigurationListenerAdapter) l).getListener()
instanceof DynamicProperty.DynamicPropertyListener) {
dynamicPropertyListener = l;