DeploymentContext[] contexts = new DeploymentContext[deployments.length];
for(int i = 0; i < deployments.length; i++)
{
try
{
Deployment deployment = deployments[i];
addDeployment(deployment, false);
DeploymentContext context = getTopLevelDeploymentContext(deployment.getName());
if (contexts == null)
throw new DeploymentException("Deployment context not found: " + deployment.getName());
deployers.process(Collections.singletonList(context), null);
contexts[i] = context;
}
catch(Throwable t)