for (AbstractName absName : containerGBeans) {
try {
String id = (String) kernel.getAttribute(absName, "id");
if (containerId.equals(id)) {
GBeanData gData1 = kernel.getGBeanData(absName);
ManageableAttributeStore attributeStore = kernel.getGBean(ManageableAttributeStore.class);
GBeanData gData = getGBeanDataFromConfiguration(absName);
for(String attributeName : gData.getAttributeNames()){
if(attributeName.equalsIgnoreCase(propertyKey)){
// Hack to make changed values reflect on configuration restart.
gData.setAttribute(attributeName, propertyValue);
Properties gbeanProps = (Properties)gData1.getAttribute("properties");
gbeanProps.setProperty(propertyKey, propertyValue);
GAttributeInfo gAttributeInfo = gData.getGBeanInfo().getAttribute(attributeName);
attributeStore.setValue(absName.getArtifact(), absName, gAttributeInfo, propertyValue, Thread.currentThread().getContextClassLoader());
}
}
}
} catch (GBeanNotFoundException e) {
return new JSCommonMessage(CommonMessage.Type.Error,