docs: protected I_CmsFormatterBean getFormatterForMacro(String macro) {
  
          CmsUUID formatterId = null;
          if (m_formatterReferences.containsKey(macro)) {
              formatterId = m_formatterReferences.get(macro);
          } else {
              try {
                  I_CmsResourceType type = OpenCms.getResourceManager().getResourceType(
                      CmsFormatterConfigurationCache.TYPE_FORMATTER_CONFIG);
                  CmsResourceFilter filter = CmsResourceFilter.DEFAULT.addRequireType(type);
                  if (m_cms.existsResource(macro, filter)) {
                      CmsResource res = m_cms.readResource(macro);
                      formatterId = res.getStructureId();
                  }
              } catch (CmsException e) {
                  LOG.error("Failed to read formatter configuration.", e);
              }
          }
          if (formatterId != null) {
              return OpenCms.getADEManager().getCachedFormatters(
                  m_cms.getRequestContext().getCurrentProject().isOnlineProject()).getFormatters().get(formatterId);
          }
          return null;
      }