}
void fillIn(Object[] methodArgs, Object returnValue, Message msg) {
String contentId = getContentId();
Object obj = (methodPos == -1) ? returnValue : getter.get(methodArgs[methodPos]);
DataHandler dh = (obj instanceof DataHandler) ? (DataHandler)obj : new DataHandler(obj,mimeType);
Attachment att = new DataHandlerAttachment(contentId, dh);
msg.getAttachments().add(att);
}