.withAddress(NodeUtils.formatAddress(node.getAddr())) .withUniqueId(NodeUtils.getUniqueId(node.getUniqueId())).withClassName(className) .withProductName(node.getStoredString(StringData.INDEX_PRODUCTNAME)) .withUserName(node.getStoredString(StringData.INDEX_USERNAME)) .withProtocolVersion(node.getProtocolVersion().toString())
.withAddress(NodeUtils.formatAddress(new byte[] { 1 })) .withUniqueId(NodeUtils.getUniqueId(0x05340d6B001234L)).withClassName("DemoSubNode") .withProductName("Demo SubNode"); master.withSubNodes(new SubNodesType().withNode(subNode));