if (targets.length == 0) {
throw new NoTargetException("Cannot find target(s) to redeploy");
}
if (!deploymentManager.isRedeploySupported()) {
throw new RedeployUnsupportedException(
"Unsupported redeploy operation");
}
ModuleType moduleType = getModuleType();