code: private I_CmsContextMenuItem findDefaultAction(Collection<I_CmsContextMenuItem> items) {
  
          I_CmsContextMenuItem result = null;
          int resultRank = -1;
          for (I_CmsContextMenuItem menuItem : items) {
              if ((menuItem instanceof CmsContextMenuActionItem)
                  && (((CmsContextMenuActionItem)menuItem).getWorkplaceAction() instanceof I_CmsDefaultAction)) {
                  I_CmsDefaultAction action = (I_CmsDefaultAction)((CmsContextMenuActionItem)menuItem).getWorkplaceAction();
                  if (getVisibility(menuItem).isActive()) {
                      if (result == null) {
                          result = menuItem;
                          resultRank = action.getDefaultActionRank(m_context);
                      } else {
                          int rank = action.getDefaultActionRank(m_context);
                          if (rank > resultRank) {
                              result = menuItem;
                              resultRank = rank;
                          }
                      }
                  }
              }
          }
          return result;
      }
docs: Evaluates the default action if any for highlighting within the menu.<p>
  
  @param items the menu items
  
  @return the default action if available