code: public void applyToFormatters(
          Map<CmsUUID, I_CmsFormatterBean> formatters,
          CmsFormatterConfigurationCacheState externalFormatters) {
  
          if (m_removeAllNonExplicitlyAdded) {
              formatters.clear();
          }
          for (Map.Entry<CmsUUID, Boolean> updateEntry : m_updateSet.entrySet()) {
              CmsUUID key = updateEntry.getKey();
              Boolean value = updateEntry.getValue();
              if (value.booleanValue()) {
                  I_CmsFormatterBean addedFormatter = externalFormatters.getFormatters().get(key);
                  if (addedFormatter != null) {
                      formatters.put(key, addedFormatter);
                  }
              } else {
                  formatters.remove(key);
              }
          }
          if (m_pathPattern != null) {
              // remove all formatters where the location path does not match the path pattern, this prevents cross site formatter use
              Iterator<Entry<CmsUUID, I_CmsFormatterBean>> formattersIt = formatters.entrySet().iterator();
              while (formattersIt.hasNext()) {
                  Entry<CmsUUID, I_CmsFormatterBean> entry = formattersIt.next();
                  if ((entry.getValue().getLocation() != null)
                      && !m_pathPattern.matcher(entry.getValue().getLocation()).matches()) {
                      formattersIt.remove();
                  }
              }
          }
      }
docs: Applies this change set to a list of external (non schema-based)  formatters.<p>
  
  @param formatters the map of formatters to which the changes should be applied
  @param externalFormatters the formatter collection which should be used to add formatters which are not already present in 'formatters'