docs: private ModelNode removeAliasFromList(ModelNode list, String alias) throws OperationFailedException {
  
          // check for empty string
          if (alias == null || alias.equals(""))
              return list ;
  
          // check for undefined list (AS7-3476)
          if (!list.isDefined()) {
              throw InfinispanMessages.MESSAGES.cannotRemoveAliasFromEmptyList(alias);
          }
  
          ModelNode newList = new ModelNode() ;
          List<ModelNode> listElements = list.asList();
  
          for (ModelNode listElement : listElements) {
              if (!listElement.asString().equals(alias)) {
                  newList.add().set(listElement);
              }
          }
          return newList ;
      }