/** ensure we can work undisturbed */
synchronized (cm)
{
/** get the snapshot construct */
this.processExport(name, binding);
XMLObjectWriter writer = openWriter(exportFileName);
writer.setBinding(binding);
if (this.getDefaultIndent() != null)
writer.setIndentation(this.getDefaultIndent());
try
{
logMe("*********Writing data*********");
writer.write(getSnapshot(), getSerializerDataTag(),
getSerializerDataClass());
} catch (Exception e)
{
throw new SerializerException(
SerializerException.FILE_PROCESSING_ERROR
.create(new String[]
{ exportFileName, e.getMessage()}));
} finally
{
/** ensure the writer is closed */
try
{
logMe("*********closing up********");
writer.close();
} catch (Exception e)
{
logMe("Error in closing writer " + e.getMessage());
/**
* don't do anything with this exception - never let the