private DeploymentPlanBuilder deployContent(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 deploy:", addedContent, deployedContent, undeployedContent, removedContent, domainModel); if (deployment != null) { deployedContent.add(deployment); undeployedContent.remove(deployment); return builder.deploy(deployment); } return builder; }