private String getParentWBS ( String wbs ) { String result ; int index = wbs . lastIndexOf ( ' ' ) ; if ( index == - 1 ) { result = null ; } else { result = wbs . substring ( 0 , index ) ; } return result ; }
Extract the parent WBS from a WBS .