Parameters
- item
- Item for which to find the parent.
- recurse
- If true, this method gets the top level parent for this item. If false, only the immediate parent is returned.
- itemPath
- List to track the current item path, to prevent recursive loops.
Return Value
Returns the OrderItem instance for the parent item. If the current item has no parent, the current item is returned.