* @throws DeploymentException for any error
*/
protected void determineDeploymentContext(Deployment deployment, boolean addToDeploy) throws DeploymentException
{
String name = deployment.getName();
DeploymentContext context = null;
try
{
context = determineStructure(deployment);
if (DeploymentState.ERROR.equals(context.getState()))
{
errorDeployments.put(name, context);
}
context.getTransientAttachments().addAttachment(MainDeployer.class, this);
topLevelDeployments.put(name, context);
addContext(context, addToDeploy);
}
catch (DeploymentException e)
{