bodyPart.setHeader("Content-Type", bpct);
File file = new File(rpcMethodName + "_Multipart.txt");
file.deleteOnExit();
multipart.addBodyPart(bodyPart);
multipart.writeTo(new FileOutputStream(file));
String contentType = multipart.getContentType();
AttachmentPart ap = msg.createAttachmentPart(multipart, contentType);
ap.setContentId(CID_MIMEPART);
msg.addAttachmentPart(ap);