try {
write(buffer, writeOptions);
</BUG>
} catch (Exception ex) {
reportError(null, ex, ErrorManager.FLUSH_FAILURE);
<BUG>} finally {
buffer.clear();</BUG>
}
}
@Override

try {
write(flushBuffer, flushWriteOptions);
} catch (Exception ex) {
reportError(null, ex, ErrorManager.FLUSH_FAILURE);
}
}
@Override
