ModelNode node = new ModelNode(); node.set("example", "Protect me"); node.protect();
ModelNode node = new ModelNode(); node.set("example", "This is an example node"); System.out.println(node.describe());In this example, a new node is created with a single attribute "example". The describe() method is called to print the string representation of the node. The org.jboss.dmr ModelNode package library is used in many JBoss applications for managing and modifying server resources.