public int getHeight() {
        int result = 1;
        if ( (childNodes != null) && (childNodes.size() > 0) ) {
            int[] heights = getSortedHeights(childNodes);
            result = 1 + heights[heights.length-1];
        }
        return result;
    }