}
if (!preProcessDependencies(toDeploy, selected, callback)) {
return;
}
DeployItemValidator validator = DeployItemValidatorFactory.newPromptOnWarningValidator();
if (validator.validate(toDeploy)) {
submitForDeploy(toDeploy, callback);
} else {
callback.caught(new Exception("Could not deploy due to invalid items."));
}
}