public CmsTreeNode<I_CmsContextMenuItem> buildAll(List<I_CmsContextMenuItem> availableItems) {

        CmsTreeNode<I_CmsContextMenuItem> result = buildTree(availableItems);
        removeEmptySubtrees(result);
        return result;

    }
public CmsTreeNode < I_CmsContextMenuItem > buildAll ( List < I_CmsContextMenuItem > availableItems ) { CmsTreeNode < I_CmsContextMenuItem > result = buildTree ( availableItems ) ; removeEmptySubtrees ( result ) ; return result ; }
Builds the complete context menu from the given available items.<p>

@param availableItems the available items

@return the complete context menu