code: public byte[] convertToXmlByteArray(BucketVersioningConfiguration versioningConfiguration) {
          XmlWriter xml = new XmlWriter();
          xml.start("VersioningConfiguration", "xmlns", Constants.XML_NAMESPACE);
          xml.start("Status").value(versioningConfiguration.getStatus()).end();
  
          Boolean mfaDeleteEnabled = versioningConfiguration.isMfaDeleteEnabled();
          if (mfaDeleteEnabled != null) {
              if (mfaDeleteEnabled) {
                  xml.start("MfaDelete").value("Enabled").end();
              } else {
                  xml.start("MfaDelete").value("Disabled").end();
              }
          }
  
          xml.end();
  
          return xml.getBytes();
      }
docs: Converts the specified versioning configuration into an XML byte array.
  
  @param versioningConfiguration
  The configuration to convert.
  
  @return The XML byte array representation.