// Force the output through to the stream
// @todo copied from Shaun's example code; probably not needed
outputStream.flush();
} catch (MarinerContextException e) {
throw new PackagingException(
exceptionLocalizer.format("no-response-stream"), e);
}
} catch (MessagingException e) {
throw new PackagingException(
exceptionLocalizer.format(
"message-writing-finalizing-error"),
e);
} catch (IOException e) {
// MCSRU0037X="Problem writing to the response writer"
throw new PackagingException(
exceptionLocalizer.format("response-writer-problem"),
e);
} finally {
if (outputStream != null) {
try {