code: public I_CmsFormatterBean getRecentFormatter(String resType, CmsContainer container, CmsADEConfigData config) {
  
          I_CmsFormatterBean result = null;
          List<CmsUUID> formatterIds = m_recentFormatters.get(resType);
          if (formatterIds != null) {
              Map<CmsUUID, I_CmsFormatterBean> availableFormatters = config.getActiveFormatters();
              Set<String> types = new HashSet<String>(Arrays.asList(container.getType().trim().split(" *, *")));
              for (CmsUUID id : formatterIds) {
                  I_CmsFormatterBean formatter = availableFormatters.get(id);
                  if ((formatter != null)
                      && CmsFormatterConfiguration.matchFormatter(formatter, types, container.getWidth())) {
                      result = formatter;
                      break;
                  }
              }
          }
  
          return result;
      }
docs: Returns the least recently used matching formatter for the given resource type.<p>
  
  @param resType the resource type
  @param container the container to match
  @param config the config data
  
  @return the formatter if any