public PathQueryNode(List<QueryText> pathElements) {this.values = pathElements;if (pathElements.size() <= 1) {throw new RuntimeException("PathQuerynode requires more 2 or more path elements.");}}

public PathQueryNode(IList<QueryText> pathElements){this.values = pathElements;if (pathElements.Count <= 1){throw new Exception("PathQuerynode requires more 2 or more path elements.");}}
