if (parameter.getNodeValue().equals("algorithmClassName")) {
String defaultAlgorithmName = configuration.getDefaultAlgorithmName();
if (StringUtils.isBlank(defaultAlgorithmName)) {
throw new RuntimeException("Default algorithm name not found in load balancer configuration");
}
Algorithm defaultAlgorithm = configuration.getAlgorithm(defaultAlgorithmName);
if (defaultAlgorithm == null) {
throw new RuntimeException("Default algorithm not found in load balancer configuration");
}
String algorithmClassName = defaultAlgorithm.getClassName();
if (log.isDebugEnabled()) {
log.debug(String.format("Setting algorithm-class-name = %s", algorithmClassName));
}
node.setTextContent(algorithmClassName);
updated = true;