private DeploymentPlanBuilder removeContent(DeploymentPlanBuilder builder, Set<String> addedContent, Set<String> deployedContent, Set<String> undeployedContent, Set<String> removedContent, ModelNode domainModel) throws IOException { String deployment = chooseUndeployedContent("Choose the content to remove:", addedContent, deployedContent, undeployedContent, removedContent, domainModel); if (deployment != null) { removedContent.add(deployment); addedContent.remove(deployment); return builder.remove(deployment); } return builder; }