return executeForResult(OperationBuilder.Factory.create(op).build());
}
private boolean removeServer() throws Exception {
ServerIdentity server = chooseServer(ServerStatus.STOPPED, ServerStatus.DISABLED);
if (server != null) {
stdout.println("Removing server " + server.getServerName());
ModelNode op = new ModelNode();
op.get("operation").set("remove");
ModelNode address = op.get("address");
address.add("host", server.getHostName());
address.add("server-config", server.getServerName());
boolean success = true;
try {
executeForResult(OperationBuilder.Factory.create(op).build());
}
catch (Exception e) {