DatastreamXMLMetadata ds1 = createXDatastream("DS1");
ds1.DSCreateDT = new Date();
original.addDatastreamVersion(ds1, true);
// serialize the object as Atom
DOSerializer serA = new AtomDOSerializer();
File f = File.createTempFile("test", null);
OutputStream out = new FileOutputStream(f);
serA.serialize(original,
out,
"utf-8",
DOTranslationUtility.SERIALIZE_EXPORT_ARCHIVE);
// deserialize the object