code: public CmsFormatterConfig getFormatterConfig(String containerName) {
  
          CmsFormatterConfig formatterConfig = null;
          if (m_formatters != null) {
              String formatterId = getSettings().get(CmsFormatterConfig.getSettingsKeyForContainer(containerName));
              if ((formatterId != null)
                  && getFormatters().containsKey(containerName)
                  && getFormatters().get(containerName).containsKey(formatterId)) {
                  // if the settings contain the formatter id, use the matching config
                  formatterConfig = getFormatters().get(containerName).get(formatterId);
              } else if (getFormatters().containsKey(containerName) && !getFormatters().get(containerName).isEmpty()) {
                  // otherwise use the first entry for the given container
                  formatterConfig = getFormatters().get(containerName).values().iterator().next();
              }
          }
          return formatterConfig;
      }
docs: Returns the current formatter configuration.<p>
  
  @param containerName the current container name
  
  @return the current formatter configuration