public Node parentNode ( ) { if ( currentNode == null ) return null ; Node node = getParentNode ( currentNode ) ; if ( node != null ) currentNode = node ; return node ; }
Return the parent Node from the current node after applying filter whatToshow . If result is not null set the current Node .