docs: private String replaceMacros(String msg, String contentLocale) {
  
          CmsMacroResolver resolver = CmsMacroResolver.newInstance();
          resolver.addMacro(MACRO_DECORATION, m_decoration);
          resolver.addMacro(MACRO_DECORATIONKEY, m_decorationKey);
          if (m_locale != null) {
              resolver.addMacro(MACRO_LOCALE, m_locale.toString());
              if (!contentLocale.equals(m_locale.toString())) {
                  resolver.addMacro(MACRO_LANGUAGE, "lang=\"" + m_locale.toString() + "\"");
              }
          }
  
          return resolver.resolveMacros(msg);
      }