code: public void loadContextMenu(final CmsUUID structureId, final AdeContext context) {
  
          /** The RPC menu action for the container page dialog. */
          CmsRpcAction<List<CmsContextMenuEntryBean>> menuAction = new CmsRpcAction<List<CmsContextMenuEntryBean>>() {
  
              /**
              * @see org.opencms.gwt.client.rpc.CmsRpcAction#execute()
              */
              @Override
              public void execute() {
  
                  getCoreService().getContextMenuEntries(structureId, context, this);
              }
  
              /**
              * @see org.opencms.gwt.client.rpc.CmsRpcAction#onResponse(java.lang.Object)
              */
              @Override
              public void onResponse(List<CmsContextMenuEntryBean> menuBeans) {
  
                  m_handler.insertContextMenu(menuBeans, structureId);
              }
          };
          menuAction.execute();
  
      }
docs: Loads the context menu entries.<p>
  
  @param structureId the structure id of the resource to get the context menu entries for
  @param context the ade context (sitemap or containerpae)