docs: private I_CmsContextMenuEntry createShowLocaleMenuEntry() {
  
          Map<String, CmsLocaleLinkBean> localeLinkBeans = CmsContainerpageController.get().getData().getLocaleLinkBeans();
          if ((localeLinkBeans == null) || localeLinkBeans.isEmpty()) {
              return null;
          }
  
          CmsContextMenuEntry parentEntry = new CmsContextMenuEntry(this, null, new I_CmsContextMenuCommand() {
  
              public void execute(
                  CmsUUID innerStructureId,
                  I_CmsContextMenuHandler handler,
                  CmsContextMenuEntryBean bean) {
  
                  // do nothing
              }
  
              public A_CmsContextMenuItem getItemWidget(
                  CmsUUID innerStructureId,
                  I_CmsContextMenuHandler handler,
                  CmsContextMenuEntryBean bean) {
  
                  return null;
              }
  
              public boolean hasItemWidget() {
  
                  return false;
              }
  
          });
          CmsContextMenuEntryBean parentBean = new CmsContextMenuEntryBean();
  
          parentBean.setLabel(
              org.opencms.ade.containerpage.client.Messages.get().key(
                  org.opencms.ade.containerpage.client.Messages.GUI_SHOW_LOCALE_0));
          parentBean.setActive(true);
          parentBean.setVisible(true);
          parentEntry.setBean(parentBean);
          List<I_CmsContextMenuEntry> subEntries = Lists.newArrayList();
  
          for (Map.Entry<String, CmsLocaleLinkBean> entry : localeLinkBeans.entrySet()) {
              String label = entry.getKey();
              final CmsLocaleLinkBean linkBean = entry.getValue();
              CmsContextMenuEntry childEntry = new CmsContextMenuEntry(this, null, new I_CmsContextMenuCommand() {
  
                  public void execute(
                      CmsUUID structureId,
                      I_CmsContextMenuHandler handler,
                      CmsContextMenuEntryBean bean) {
  
                      if (linkBean.getError() != null) {
                          CmsNotification.get().sendAlert(Type.WARNING, linkBean.getError());
                      } else if (linkBean.getLink() != null) {
                          Window.Location.assign(linkBean.getLink());
                      }
                  }
  
                  public A_CmsContextMenuItem getItemWidget(
                      CmsUUID structureId,
                      I_CmsContextMenuHandler handler,
                      CmsContextMenuEntryBean bean) {
  
                      return null;
                  }
  
                  public boolean hasItemWidget() {
  
                      return false;
                  }
              });
              CmsContextMenuEntryBean childBean = new CmsContextMenuEntryBean();
              childBean.setLabel(label);
              childBean.setActive(true);
              childBean.setVisible(true);
              childEntry.setBean(childBean);
              subEntries.add(childEntry);
          }
          parentEntry.setSubMenu(subEntries);
          if (subEntries.isEmpty()) {
              return null;
          } else {
              return parentEntry;
          }
      }