map.put("K2", "v2");
doc.put("mime1", map);
try {
if (doc instanceof lotus.domino.Document) {
lotus.domino.Document lotusDoc = (lotus.domino.Document) doc;
RichTextItem rti = lotusDoc.createRichTextItem("body");
rti.appendText("This is autoexec.bat:");
rti.embedObject(EmbeddedObject.EMBED_ATTACHMENT, "", "c:\\autoexec.bat", null).recycle();
rti.compact();
rti.recycle();
}
} catch (NotesException ex) {
}