} catch (ClassNotFoundException e) {
throw new DeploymentException(Messages.getMessage("clusterImplNotFound",
className));
}
ConfigurationManager configurationManager =
(ConfigurationManager) clazz.newInstance();
clusterManager.setConfigurationManager(configurationManager);
OMElement listenerEle =
configManagerEle.getFirstChildWithName(new QName(TAG_LISTENER));
if (listenerEle != null) {
classNameAttr = listenerEle.getAttribute(new QName(TAG_CLASS_NAME));
if (classNameAttr == null) {
throw new DeploymentException(Messages.getMessage("clusterImplNotFound",
TAG_LISTENER));
}
className = classNameAttr.getAttributeValue();
try {
clazz = Class.forName(className);
} catch (ClassNotFoundException e) {
throw new DeploymentException(Messages.getMessage("configurationManagerListenerIsNull"));
}
ConfigurationManagerListener listener = (ConfigurationManagerListener) clazz
.newInstance();
listener.setConfigurationContext(configCtx);
configurationManager.setConfigurationManagerListener(listener);
} else {
throw new DeploymentException(Messages.getMessage("configurationManagerListenerIsNull"));
}
//updating the ConfigurationManager with the new ConfigurationContext
configurationManager.setConfigurationContext(configCtx);
//loading the parameters.
processParameters(configManagerEle.getChildrenWithName(new QName(TAG_PARAMETER)),
configurationManager,
null);