output = new FilteredStreamWriter(output, version);
final Context context = begin();
try {
marshaller.marshal(object, output);
} finally {
context.finish();
}
output.close(); // Despite its name, this method does not close the underlying output stream.
}
/**