code: private ModelNode addLocalHost(final ModelNode address, final List<ModelNode> operationList, final String hostName) {
  
          String resolvedHost =  hostName != null ? hostName : defaultHostControllerName;
  
          // All further operations should modify the newly added host so the address passed in is updated.
          address.add(HOST, resolvedHost);
  
          // Add a step to setup the ManagementResourceRegistrations for the root host resource
          final ModelNode hostAddOp = new ModelNode();
          hostAddOp.get(OP).set(HostAddHandler.OPERATION_NAME);
          hostAddOp.get(OP_ADDR).set(address);
  
          operationList.add(hostAddOp);
  
          // Add a step to store the HC name
          ModelNode nameValue = hostName == null ? new ModelNode() : new ModelNode(hostName);
          final ModelNode writeName = Util.getWriteAttributeOperation(address, NAME, nameValue);
          operationList.add(writeName);
          return hostAddOp;
      }
docs: Add the operation to add the local host definition.