code: public String getI18nXmlString() {
      Format format = Format.getPrettyFormat();
      XMLOutputter outputter = new XMLOutputter(format);
      return outputter.outputString(buildI18nXml());
    }
docs: Build i18n resource XML in Sling i18n Message format.
  @return XML