Added treeEntryOid function