}
className = classNameAttr.getAttributeValue();
clazz = Class.forName(className);
ConfigurationManager configurationManager = (ConfigurationManager) clazz
.newInstance();
clusterManager.setConfigurationManager(configurationManager);
OMElement listenersElement = configurationManagerElement
.getFirstChildWithName(new QName(TAG_LISTENERS));
if (listenersElement != null) {
Iterator listenerElemIter = listenersElement.getChildrenWithName(new QName(
TAG_LISTENER));
while (listenerElemIter.hasNext()) {
OMElement listenerElement = (OMElement) listenerElemIter.next();
classNameAttr = listenerElement.getAttribute(new QName(TAG_CLASS_NAME));
if (classNameAttr==null) {
throw new DeploymentException(Messages.getMessage("classAttributeNotFound", TAG_LISTENER));
}
className = classNameAttr.getAttributeValue();
clazz = Class.forName(className);
ConfigurationManagerListener listener = (ConfigurationManagerListener) clazz
.newInstance();
listener.setConfigurationContext(configCtx);
configurationManager.addConfigurationManagerListener(listener);
}
}
//updating the ConfigurationManager with the new ConfigurationContext
configurationManager.setConfigurationContext(configCtx);
}
// loading the ContextManager
OMElement contextManagerElement = clusterElement.getFirstChildWithName(