// Build and execute the deployment plan
InputStream inputStream = dep.getRoot().openStream();
DeploymentPlanBuilder builder = deploymentManager.newDeploymentPlan();
builder = builder.add(contextName, inputStream).andDeploy();
DeploymentPlan plan = builder.build();
DeploymentAction deployAction = builder.getLastAction();
executeDeploymentPlan(plan, deployAction);
} catch (RuntimeException rte) {
throw rte;
} catch (BundleException ex) {