IIOAttr attr = (IIOAttr)it.next();
IIOMetadataNodeAttr attr = (IIOMetadataNodeAttr)it.next();
  public Node cloneNode(boolean deep)  {    IIOMetadataNode newnode = new IIOMetadataNode(name);    newnode.parent = null;    newnode.obj = obj;    if (deep)    {      for (int i=0; i < children.size(); i++)        newnode.children.add(((Node)children.get(i)).cloneNode(deep));    }        // clone attrs    for (Iterator it = attrs.values().iterator(); it.hasNext();)    {      IIOAttr attr = (IIOAttr)it.next();      newnode.attrs.put(attr.name, attr.cloneNode(deep));      attr.owner = newnode;    }    return newnode;  }