code: @Override
      public void addTo(CommandContext ctx, ModelNode headers) throws CommandFormatException {
          if(name == null) {
              throw new CommandFormatException("Header name is null.");
          }
          if(value == null) {
              throw new CommandFormatException("Value for header '" + name + "' is null.");
          }
          headers.get(name).set(value);
      }
docs: /* (non-Javadoc)
  @see org.jboss.as.cli.operation.OperationRequestHeader#toModelNode()