code: @Override
      public void writeContent(XMLExtendedStreamWriter writer, SubsystemMarshallingContext context) throws XMLStreamException {
          context.startSubsystemElement(Namespace.CURRENT.getUriString(), false);
          ModelNode scanners = context.getModelNode();
          for (final Property list : scanners.asPropertyList()) {
              final ModelNode node = list.getValue();
  
              for (final Property scanner : node.asPropertyList()) {
  
                  writer.writeEmptyElement(CommonAttributes.DEPLOYMENT_SCANNER);
                  writer.writeAttribute(CommonAttributes.NAME, scanner.getName());
                  ModelNode configuration = scanner.getValue();
                  if (configuration.hasDefined(PATH)) {
                      writer.writeAttribute(PATH, configuration.get(PATH)
                              .asString());
                  }
                  if (configuration.hasDefined(CommonAttributes.SCAN_ENABLED)) {
                      writer.writeAttribute(CommonAttributes.SCAN_ENABLED,
                              configuration.get(CommonAttributes.SCAN_ENABLED).asString());
                  }
                  if (configuration.hasDefined(CommonAttributes.SCAN_INTERVAL)) {
                      writer.writeAttribute(CommonAttributes.SCAN_INTERVAL,
                              configuration.get(CommonAttributes.SCAN_INTERVAL).asString());
                  }
                  if (configuration.hasDefined(CommonAttributes.RELATIVE_TO)) {
                      writer.writeAttribute(CommonAttributes.RELATIVE_TO,
                              configuration.get(CommonAttributes.RELATIVE_TO).asString());
                  }
                  if (configuration.hasDefined(CommonAttributes.AUTO_DEPLOY_ZIPPED)) {
                      if (!configuration.get(CommonAttributes.AUTO_DEPLOY_ZIPPED).asBoolean()) {
                          writer.writeAttribute(CommonAttributes.AUTO_DEPLOY_ZIPPED, Boolean.FALSE.toString());
                      }
                  }
                  if (configuration.hasDefined(CommonAttributes.AUTO_DEPLOY_EXPLODED)) {
                      if (configuration.get(CommonAttributes.AUTO_DEPLOY_EXPLODED).asBoolean()) {
                          writer.writeAttribute(CommonAttributes.AUTO_DEPLOY_EXPLODED, Boolean.TRUE.toString());
                      }
                  }
                  if (configuration.hasDefined(CommonAttributes.DEPLOYMENT_TIMEOUT)) {
                      writer.writeAttribute(CommonAttributes.DEPLOYMENT_TIMEOUT, configuration.get(CommonAttributes.DEPLOYMENT_TIMEOUT).asString());
                  }
              }
              writer.writeEndElement();
          }
      }
docs: {@inheritDoc}