cloned.setUserObject(getUserObject());
if (deep) { // Clone recursively
IIOMetadataNode c = firstChild;
while (c != null) {
cloned.insertBefore(c.cloneNode(true), null);
c = c.nextSibling;
}
}
return cloned; //To change body of implemented methods use File | Settings | File Templates.