public ComboMenuButton buildManageGroupsButton(boolean enabled) {
MenuBar groupsMenu = new MenuBar(true);
MenuItem manageGroupsMenuItem = new MenuItem("Manage My Groups", new ManageMyGroupsCommand(getAuthenticatedUser()));
manageGroupsMenuItem.setTitle("Manage groups which you administer");
groupsMenu.addItem(manageGroupsMenuItem);
groupsMenu.addItem("Manage Group Requests", new ManagePendingGroupJoinsCommand(getAuthenticatedUser()));
groupsMenu.addItem("Create New Group", new CreateGroupCommand(getAuthenticatedUser(), null));
groupsMenu.addItem("Join/Leave Groups", new JoinLeaveGroupsCommand(getAuthenticatedUser()));
ComboMenuButton menuButton = new ComboMenuButton(getMessages().getString("groups", "Groups"), groupsMenu);
menuButton.setEnabled(enabled);