code: 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_CACHE_LOADER);
          writer.indent();
  
          writer.newLine();
          writer.taggedValue("timeNow", timeNow);
          writer.newLine();
          writer.taggedValue("interval", interval);
          writer.newLine();
          writer.taggedValue("enabled", Boolean.valueOf(enabled));
          writer.newLine();
          writer.taggedValue("maxStreamsPerCycle", maxStreamsPerCycle);
          writer.newLine();
          writer.taggedValue("loaderStartTime", dateFormat.format(new Date(loaderStartTime)));
          writer.newLine();
          writer.taggedValue("loaderStopTime", dateFormat.format(new Date(loaderStopTime)));
          writer.newLine();
          writer.taggedValue("totalStreams", totalStreams);
          writer.newLine();
  
          for (int i = 0; i < MAX_DIAG_LOG; i++)
          {
              String str =
              "Cycle="
              + i
              + (diagIndex == i ? ":*" : ": ")
              + dateFormat.format(new Date(cycleTime[i]))
              + " streamsLoaded="
              + logStreamsLoaded[i]
              + " duration="
              + logDuration[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_CACHE_LOADER);
      }
docs: Dump the XML representation of the expirer.
  @param writer The formatted writer to which the dump should be directed.
  @throws IOException