Creating named couchbase lite document

hi,

i am creating cocuhbase lite document through code:

Map<String, Object> properties = new HashMap<String, Object>();
properties.put(“type”, “list”);
properties.put(“title”, title);
properties.put(“created_at”, currentTimeString);
properties.put(“owner”, “profile:” + userId);
properties.put(“members”, new
ArrayList());
Document document = database.createDocument();
document.putProperties(properties);

Can you help me to create named document as we can create in cocuhbase server like ,

Client.set(“doument_name”,“document_value”);

you can use:
Document document = database.getDocument(“name of document”);
if name is not existent, it will create a new document.