code:   public synchronized XPathRecordReader addField(String name, String xpath, boolean multiValued, int flags) {
      addField0(xpath, name, multiValued, false, flags);
      return this;
    }
  
    /**
     * Splits the XPATH into a List of xpath segments and calls build() to
     * construct a tree of Nodes representing xpath segments. The resulting
     * tree structure ends up describing all the Xpaths we are interested in.
     *
     * @param xpath The xpath expression for this field
     * @param name The name for this field in the emitted record
     * @param multiValued If 'true' then the emitted record will have values in 
     *                    a List&lt;String&gt;
     * @param isRecord Flags that this XPATH is from a forEach statement
     * @param flags The only supported flag is 'FLATTEN'
     */
  