public static String parent ( String node ) { final int index = node . lastIndexOf ( ' ' ) ; if ( index < 0 ) return null ; return node . substring ( 0 , index ) ; }
Returns the parent tree node of a given node .