domainOp.get(RECURSIVE).set(true);
domainOp.get("proxies").set(false);
ModelNode result = client.execute(domainOp);
if(! SUCCESS.equals(result.get(OUTCOME).asString())) {
throw new OperationFailedException(result.get(FAILURE_DESCRIPTION));
}
System.out.println("-- domain configuration");
final ModelNode domainResult = result.get(RESULT).clone();
System.out.println(domainResult);
System.out.println("--");
final ModelNode hostOp = new ModelNode();
hostOp.get(OP).set(READ_RESOURCE_OPERATION);
hostOp.get(OP_ADDR).setEmptyList().add(HOST, "local");
hostOp.get(RECURSIVE).set(true);
hostOp.get("proxies").set(false);
result = client.execute(hostOp);
if(! SUCCESS.equals(result.get(OUTCOME).asString())) {
throw new OperationFailedException(result.get(FAILURE_DESCRIPTION));
}
System.out.println("-- host configuration");
final ModelNode hostResult = result.get(RESULT).clone();
System.out.println();