void writeWithoutAttachments(MessageContext context, OutMessage message, OutputStream out)
throws XFireException
{
XMLStreamWriter writer = STAXUtils.createXMLStreamWriter(out, message.getEncoding(), context);
message.getSerializer().writeMessage(message, writer, context);
<BUG>try {
writer.flush();</BUG>
}
<BUG>catch (XMLStreamException e) {
logger.error(e);</BUG>
throw new XFireException("Couldn't send message.", e);

void writeWithoutAttachments(MessageContext context, OutMessage message, OutputStream out)
throws XFireException
{
XMLStreamWriter writer = STAXUtils.createXMLStreamWriter(out, message.getEncoding(), context);
message.getSerializer().writeMessage(message, writer, context);
try
{
writer.flush();
}
catch (XMLStreamException e)
{
logger.error(e);
