code: public static boolean isMultiValuedPath(List<String> expression) {
          for (String element : expression) {
              if ("*".equals(element) || element.startsWith("*:")) {
                  return true;
              }
          }
          return false;
      }
docs: Returns true if the given path expression contains wildcards and could be
  expanded to match multiple values.