public void serializeCall(PrintWriter writer, OutputStream out,
UUID uuid, Object []args)
throws IOException
{
AttachmentProperty attachmentProperty = (AttachmentProperty) _property;
Holder holder = (Holder) args[_arg];
Object arg = holder.value;
String contentType = attachmentProperty.getMimeType(arg);
writer.print("--uuid:" + uuid + "\r\n");
writer.print("Content-Type: " + contentType + "\r\n");
writer.print("\r\n");
writer.flush();
attachmentProperty.writeAsAttachment(arg, out);
writer.print("\r\n");
writer.flush();
}