{
serializeFieldsToProperties(output);
}
catch (Exception e)
{
throw new ConfigurationExportException("Unable to serialize persistence configuration to property file.", e);
}
finally
{
if (output != null)
{
try
{
output.close();
}
catch (IOException e)
{
throw new ConfigurationExportException("Unable to close stream after serialization of persistence configuration to property file.", e);
}
}
}
}