context.resp.getOutputStream().write(inline);
if (inline.length > 0) context.resp.getOutputStream().write(inline);
    private static void addXZimbraHeaders(Context context, MailItem item, long size) throws IOException {        StringBuffer hdr = new StringBuffer();        addHeader(context, hdr, "X-Zimbra-Tags", item.getTagString());        addHeader(context, hdr, "X-Zimbra-Flags", item.getFlagString());        addHeader(context, hdr, "X-Zimbra-Received", item.getDate() + "");        addHeader(context, hdr, "X-Zimbra-Modified", item.getChangeDate() + "");        addHeader(context, hdr, "X-Zimbra-Change", item.getModifiedSequence() + "");        addHeader(context, hdr, "X-Zimbra-Revision", item.getSavedSequence() + "");        if (item instanceof Message)            addHeader(context, hdr, "X-Zimbra-Conv", ((Message) item).getConversationId() + "");        byte[] inline = hdr.toString().getBytes();        // explicitly set the Content-Length header, as it's only done implicitly for short payloads        if (size > 0)            context.resp.setContentLength(inline.length + (int) size);        // inline X-Zimbra headers with response body        context.resp.getOutputStream().write(inline);    }