docs: public void xmlWriteOn(FormattedWriter writer) throws IOException 
      {
          DateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd @ HH:mm:ss.SSS");
          String timeNow = dateFormat.format(new Date());
          writer.newLine(); 
          writer.startTag(XML_EXPIRER);
          writer.indent();
          writer.newLine();
          writer.taggedValue("timeNow", timeNow);
          writer.newLine();
          writer.taggedValue("interval", interval);
          writer.newLine();
          writer.taggedValue("addEnabled", Boolean.valueOf(addEnabled));
          writer.newLine();
          writer.taggedValue("runEnabled", Boolean.valueOf(runEnabled));
          writer.newLine();
          writer.taggedValue("cleanupFlag", Boolean.valueOf(cleanupDeletedItems));
          writer.newLine();
          writer.taggedValue("expirerStartTime", dateFormat.format(new Date(expirerStartTime)));
          writer.newLine();
          writer.taggedValue("expirerStopTime", dateFormat.format(new Date(expirerStopTime)));
          writer.newLine();
          writer.taggedValue("nextLogIndex", diagIndex);
          writer.newLine();
  
          for (int i = 0; i < MAX_DIAG_LOG; i++)
          {
              String str =
              "Cycle="
              + i
              + (diagIndex == i ? ":*" : ": ")
              + dateFormat.format(new Date(alarmTime[i]))
              + " size="
              + logIndexSize[i]
              + " processed="
              + logProcessed[i]
              + " expired="
              + logExpired[i]
              + " remain="
              + logRemain[i]
              + " gone="
              + logGone[i]
              + " cleaned="
              + logCleaned[i];
              writer.taggedValue("info", str);
              writer.newLine();
          }
  
          writer.startTag(XML_STORED_EXCEPTION);
          if (lastException == null)
          {
              writer.write("No exceptions recorded");
          }
          else
          {
              writer.indent();
              writer.newLine();
              writer.taggedValue("time", new Date(lastExceptionTime));
              writer.outdent();
              writer.write(lastException);
              writer.newLine();
          }
          writer.endTag(XML_STORED_EXCEPTION);
  
          writer.outdent();
          writer.newLine();
          writer.endTag(XML_EXPIRER);
      }