return executeForResult(new OperationBuilder(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(new OperationBuilder(op).build());
} catch (Exception e) {
success = false;