code: public static ModelNode toAddress(List<String> path)
      {
  
          ModelNode address = new ModelNode();
          address.setEmptyList();
  
          if(path.size()<2) return address;
  
          for(int i=1; i<path.size();i+=2)
          {
              if(i%2!=0 )
                  address.add(path.get(i-1), path.get(i));
              else
                  address.add(path.get(i), WILDCARD);
          }
  
          return address;
  
      }
docs: ------------------------