code: private void createContextMenu(List<I_CmsContextMenuEntry> entries) {
  
          Iterator<I_CmsContextMenuEntry> it = entries.iterator();
          while (it.hasNext()) {
              I_CmsContextMenuEntry entry = it.next();
              if (!entry.isVisible()) {
                  continue;
              }
              if (entry.isSeparator()) {
                  addSeparator();
              } else {
                  A_CmsContextMenuItem item = entry.generateMenuItem();
                  if (entry.hasSubMenu()) {
                      CmsContextMenu submenu = new CmsContextMenu(entry.getSubMenu(), m_isFixed, m_popup);
                      item.setSubMenu(submenu);
                      addItem(item);
                  } else {
                      addItem(item);
                  }
              }
  
          }
      }
docs: Creates the context menu.<p>
  
  @param entries a list with all entries for the context menu