String subDomain,
String hostName,
ConfigurationContext configurationContext) throws CartridgeAgentException {
try {
List<ClusteringCommand> clusteringCommands =
loadBalancerAgent.sendMessage(new CreateRemoveClusterDomainMessage(domain, subDomain, hostName),
true);
if (clusteringCommands != null && !clusteringCommands.isEmpty()) {
for (ClusteringCommand clusteringCommand : clusteringCommands) {
clusteringCommand.execute(configurationContext);
}