ConcurrentMapConfiguration subConfig = new ConcurrentMapConfiguration();
subConfig.setProperty("com.netflix.config.samples.SampleApp.SampleBean.name", "A Coffee Bean from Cuba");
myConfiguration.setProperty("com.netflix.config.samples.sampleapp.prop1", "value1");
myConfiguration.addConfiguration(subConfig);
System.out.println("Started SampleApplication. Launch JConsole to inspect and update properties.");
System.out.println("To see how callback work, update property com.netflix.config.samples.SampleApp.SampleBean.sensitiveBeanData from BaseConfigBean in JConsole");
SampleBean sampleBean = new SampleBean();
// this should show the bean taking properties from two different sources