code: @Override
      public InputStream GetObjectXML() throws ObjectIntegrityException,
                                               StreamIOException, UnsupportedTranslationException, ServerException {
          ReadableByteArrayOutputStream bytes = new ReadableByteArrayOutputStream(4096);
          m_translator.serialize(m_obj,
                                 bytes,
                                 m_storageFormat,
                                 "UTF-8",
                                 DOTranslationUtility.SERIALIZE_STORAGE_INTERNAL);
          return bytes.toInputStream();
      }
docs: Return the object as an XML input stream in the internal serialization
  format.