case REPLACE: {
controller.addServerModelUpdate(new ServerModelDeploymentReplaceUpdate(action.getDeploymentUnitUniqueName(), action.getReplacedDeploymentUnitUniqueName()), resultHandler, action.getId());
break;
}
case FULL_REPLACE:
ServerGroupDeploymentElement deployment = serverConfiguration.getDeployment(action.getDeploymentUnitUniqueName());
boolean redeploy = deployment != null && deployment.isStart();
controller.addServerModelUpdate(new ServerModelDeploymentFullReplaceUpdate(action.getDeploymentUnitUniqueName(), action.getNewContentFileName(), action.getNewContentHash(), redeploy), resultHandler, action.getId());
break;
default: {
throw new IllegalStateException("Unknown type " + action.getType());
}