return new DeploymentPlanBuilderImpl(this, mod);
}
@Override
public DeploymentPlanBuilder andRemoveUndeployed() {
DeploymentAction last = getLastAction();
if (last.getType() != Type.UNDEPLOY) {
// Someone cast to the impl class instead of using the interface
throw new IllegalStateException("Preceding action was not a " + Type.UNDEPLOY);
}
DeploymentActionImpl removeMod = DeploymentActionImpl.getRemoveAction(last.getDeploymentUnitUniqueName());
return new DeploymentPlanBuilderImpl(this, removeMod);
}