if (contextsInError.isEmpty())
contextsInError = null;
if (contextsMissingDependencies.isEmpty())
contextsMissingDependencies = null;
IncompleteDeployments incomplete = new IncompleteDeployments(deploymentsInError, deploymentsMissingDeployer, contextsInError, contextsMissingDependencies);
if (incomplete.isIncomplete())
throw new IncompleteDeploymentException(incomplete);
}