docs: private I_CmsFormatterBean getFormatterForType(CmsObject cms, CmsResource resource, boolean isOnline) {
  
          String typeName = OpenCms.getResourceManager().getResourceType(resource).getTypeName();
          I_CmsFormatterBean result = null;
          if (m_displayFormatterPaths.containsKey(typeName)) {
              try {
                  CmsResource res = cms.readResource(m_displayFormatterPaths.get(typeName));
                  result = OpenCms.getADEManager().getCachedFormatters(isOnline).getFormatters().get(
                      res.getStructureId());
              } catch (CmsException e) {
                  LOG.error(e.getLocalizedMessage(), e);
              }
          } else if (m_displayFormatterIds.containsKey(typeName)) {
              result = OpenCms.getADEManager().getCachedFormatters(isOnline).getFormatters().get(
                  m_displayFormatterIds.get(typeName));
          } else {
              CmsADEConfigData config = OpenCms.getADEManager().lookupConfiguration(
                  cms,
                  cms.addSiteRoot(cms.getRequestContext().getFolderUri()));
              if (config != null) {
                  CmsFormatterConfiguration formatters = config.getFormatters(cms, resource);
                  if (formatters != null) {
                      result = formatters.getDisplayFormatter();
                  }
              }
          }
          return result;
      }