code: @Override
      public void generate(final Module module, final Element parent) {
          final AppModule m = (AppModule) module;
  
          if (m.getDraft() != null) {
              final String draft = m.getDraft().booleanValue() ? "yes" : "no";
              final Element control = new Element("control", APP_NS);
              control.addContent(generateSimpleElement("draft", draft));
              parent.addContent(control);
          }
          if (m.getEdited() != null) {
              final Element edited = new Element("edited", APP_NS);
              // Inclulde millis in date/time
              final SimpleDateFormat dateFormater = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'", Locale.US);
              dateFormater.setTimeZone(TimeZone.getTimeZone("GMT"));
              edited.addContent(dateFormater.format(m.getEdited()));
              parent.addContent(edited);
          }
      }
docs: Generate JDOM element for module and add it to parent element