docs: private ModelNode addNewAliasToList(ModelNode list, String alias) {
  
          // check for empty string
          if (alias == null || alias.equals(""))
              return list ;
  
          // check for undefined list (AS7-3476)
          if (!list.isDefined()) {
              list.setEmptyList();
          }
  
          ModelNode newList = list.clone() ;
          List<ModelNode> listElements = list.asList();
  
          boolean found = false;
          for (ModelNode listElement : listElements) {
              if (listElement.asString().equals(alias)) {
                  found = true;
              }
          }
          if (!found) {
              newList.add().set(alias);
          }
          return newList ;
      }