code: private String getContextInfo(CmsContainerPageElementPanel element) {
  
          CmsContainerPageContainer container;
          if (m_handler.m_controller.isGroupcontainerEditing()) {
              container = (CmsContainerPageContainer)((CmsContainerPageElementPanel)element.getParentTarget()).getParentTarget();
          } else {
              container = (CmsContainerPageContainer)element.getParentTarget();
          }
          JSONObject result = new JSONObject();
          putString(result, CmsCntPageData.JSONKEY_ELEMENT_ID, element.getId());
          CmsUUID detailId = m_handler.m_controller.getData().getDetailId();
          if (detailId != null) {
              putString(result, CmsCntPageData.JSONKEY_DETAIL_ELEMENT_ID, "" + detailId);
          }
          putString(result, CmsCntPageData.JSONKEY_NAME, "" + container.getContainerId());
          putString(result, CmsCntPageData.JSONKEY_TYPE, "" + container.getContainerType());
          result.put(CmsCntPageData.JSONKEY_WIDTH, new JSONNumber(container.getConfiguredWidth()));
          result.put(CmsCntPageData.JSONKEY_DETAILVIEW, JSONBoolean.getInstance(container.isDetailView()));
          result.put(CmsCntPageData.JSONKEY_DETAILONLY, JSONBoolean.getInstance(container.isDetailOnly()));
          result.put(CmsCntPageData.JSONKEY_MAXELEMENTS, new JSONNumber(1));
          JSONObject presets = new JSONObject();
          Map<String, String> presetsMap = container.getSettingPresets();
          for (Map.Entry<String, String> entry : presetsMap.entrySet()) {
              presets.put(entry.getKey(), new JSONString(entry.getValue()));
          }
          result.put(CmsCntPageData.JSONKEY_PRESETS, presets);
          return result.toString();
      }
docs: Returns the HTML context info for the given element.<p>
  
  @param element the edited element
  
  @return the JSON string