Attachments atts = message.getAttachments();
if (atts != null && atts.size() > 0) {
writeAttachmentBody(context, message);</BUG>
atts.write(out);
}
<BUG>else {
writeWithoutAttachments(context, message, out);</BUG>
}
}
<BUG>catch (IOException e) {
throw new XFireException("Couldn't send message.", e);</BUG>
}

Attachments atts = message.getAttachments();
if (atts != null && atts.size() > 0)
{
writeAttachmentBody(context, message);
atts.write(out);
