code: public NlsTemplate getTemplate(NlsTemplateResolver resolver) {
  
      if (this.template == null) {
        synchronized (this) {
          if (this.template == null) {
            NlsTemplateResolver templateResolver;
            if (resolver == null) {
              templateResolver = NlsAccess.getTemplateResolver();
            } else {
              templateResolver = resolver;
            }
            this.template = templateResolver.resolveTemplate(this.message);
          }
        }
      }
      return this.template;
    }
docs: This method gets the {@link NlsTemplate} of this message.
  
  @param resolver is the {@link NlsTemplateResolver} used to {@link NlsTemplateResolver#resolveTemplate(String)
  resolve} the {@link NlsTemplate} if NOT yet available.
  @return the text the {@link NlsTemplate}.