code: private void fillDetailDocTypes(CmsListItem item, String detailId) {
  
          CmsSearchManager searchManager = OpenCms.getSearchManager();
          StringBuffer html = new StringBuffer();
  
          // search for the corresponding CmsSearchIndexSource:
          String idxSourceName = (String)item.get(LIST_COLUMN_NAME);
          CmsSearchIndexSource idxSource = searchManager.getIndexSource(idxSourceName);
  
          // get the index sources doc types
          List<String> docTypes = idxSource.getDocumentTypes();
          // output of found index sources
          Iterator<String> itDocTypes = docTypes.iterator();
          CmsSearchDocumentType docType;
          html.append("<ul>\n");
          while (itDocTypes.hasNext()) {
              // get the instance (instead of plain name) for more detail in future...
              docType = searchManager.getDocumentTypeConfig(itDocTypes.next());
              // harden against unconfigured doctypes that are refferred to by indexsource nodes
              if (docType != null) {
  
                  html.append("  <li>\n").append("  ").append(docType.getName()).append("\n");
                  html.append("  </li>");
              }
          }
  
          html.append("</ul>\n");
          item.set(detailId, html.toString());
      }
docs: Fills details about document types of the index source into the given item. <p>
  
  @param item the list item to fill
  @param detailId the id for the detail to fill