if (children != null) { ret.children = children.clone(stylesheet); } if (next != null) { ret.next = next.clone(stylesheet); } return ret;
  TemplateNode clone(Stylesheet stylesheet)  {    int len = sortKeys.size();    List sortKeys2 = new ArrayList(len);    for (int i = 0; i < len; i++)      {        sortKeys2.add(((Key) sortKeys.get(i)).clone(stylesheet));      }    return new ForEachNode((children == null) ? null :                           children.clone(stylesheet),                           (next == null) ? null :                           next.clone(stylesheet),                           select.clone(stylesheet),                           sortKeys2);  }