code: public byte[] convertToXmlByteArray(AnalyticsConfiguration config) throws SdkClientException {
          XmlWriter xml = new XmlWriter();
  
          xml.start("AnalyticsConfiguration", "xmlns", Constants.XML_NAMESPACE);
  
          addParameterIfNotNull(xml, "Id", config.getId());
          writeAnalyticsFilter(xml, config.getFilter());
          writeStorageClassAnalysis(xml, config.getStorageClassAnalysis());
  
          xml.end();
  
          return xml.getBytes();
      }
docs: /*
  <AnalyticsConfiguration xmlns="http://s3.amazonaws.com/doc/2006-03-01/">
  <Id>XXX</Id>
  <Filter>
  <And>
  <Prefix>documents/</Prefix>
  <Tag>
  <Key>foo</Key>
  <Value>bar</Value>
  </Tag>
  </And>
  </Filter>
  <StorageClassAnalysis>
  <DataExport>
  <OutputSchemaVersion>1</OutputSchemaVersion>
  <Destination>
  <S3BucketDestination>
  <Format>CSV</Format>
  <BucketAccountId>123456789</BucketAccountId>
  <Bucket>destination-bucket</Bucket>
  <Prefix>destination-prefix</Prefix>
  </S3BucketDestination>
  </Destination>
  </DataExport>
  </StorageClassAnalysis>
  </AnalyticsConfiguration>