</BUG>
default:
throw new IllegalArgumentException("Unrecognized deployment type " + type);
}
}
<BUG>private Deployment createClusteredSimpleDeployment(DeploymentConfiguration deploymentConfiguration) {
</BUG>
DeploymentEnvironment deploymentEnvironment = deploymentConfiguration.getDeploymentEnvironment();
String accountName = deploymentEnvironment.getAccountName();
if (accountName == null || accountName.isEmpty()) {

DeploymentType type = deploymentConfiguration.getDeploymentEnvironment().getType();
switch (type) {
case LocalhostDebian:
return new LocalhostDebianDeployment();
case ClusteredSimple:
return createClusteredSimpleDeployment(deploymentConfiguration, generateResult);
default:
throw new IllegalArgumentException("Unrecognized deployment type " + type);
}
}
private Deployment createClusteredSimpleDeployment(DeploymentConfiguration deploymentConfiguration, Map<String, List<String>> generateResult) {
DeploymentEnvironment deploymentEnvironment = deploymentConfiguration.getDeploymentEnvironment();
String accountName = deploymentEnvironment.getAccountName();
if (accountName == null || accountName.isEmpty()) {
