while (parentsIterator.hasNext()) {
Object obj = parentsIterator.next();
if(obj instanceof Inode){
Inode parentInode = (Inode) obj;
parentInode.addChild(workingLink);
//to keep relation types from parent only if it exists
Tree tree = com.dotmarketing.factories.TreeFactory.getTree(
parentInode, currentLink);
if ((tree.getRelationType() != null)