session.setConvertMIME(false);
session.setFixEnable(Fixes.APPEND_ITEM_VALUE, true);
session.setFixEnable(Fixes.FORCE_JAVA_DATES, true);
session.setFixEnable(Fixes.CREATE_DB, true);
Database db = session.getDatabase("", "log.nsf");
Document doc = db.createDocument();
doc.replaceItemValue("form", "Events");
doc.replaceItemValue("Server", "Test");
Map<String, String> map = new HashMap<String, String>();
map.put("me", "us");
map.put("myself", "ourselves");
map.put("I", "we");
doc.replaceItemValue("map", map);
doc.save();
String unid = doc.getUniversalID();
doc = null;
Document docJunk = db.createDocument();
doc = db.getDocumentByUNID(unid);
System.out.println(doc.getNoteID());
Object o = doc.getItemValue("map", Map.class);
System.out.println(o.getClass().getName());
Map<String, String> remap = (Map<String, String>) o;