code: protected void initTemplatesForNlsBundles(Map<String, NlsTemplate> map) {
  
      if (this.bundleFactory instanceof AbstractNlsBundleFactory) {
        Collection<? extends NlsBundleDescriptor> bundleDescriptors = ((AbstractNlsBundleFactory) this.bundleFactory).getNlsBundleDescriptors();
        for (NlsBundleDescriptor descriptor : bundleDescriptors) {
          for (Provider<NlsTemplate> container : descriptor.getTemplateContainers()) {
            NlsTemplate template = container.get();
            if (template instanceof NlsTemplateImplWithMessage) {
              String message = template.translate(AbstractNlsMessage.LOCALE_ROOT);
              map.put(message, template);
            }
          }
        }
      }
    }
docs: This method initializes the {@link NlsTemplate}s for reverse lookup for {@link NlsBundle}s.
  
  @param map the {@link Map} where to {@link Map#put(Object, Object) register} the {@link NlsTemplate}s by
  their {@link net.sf.mmm.util.nls.api.NlsMessage#getInternationalizedMessage() i18n message}.