src/main/java/org/lightcouch/Document.java
public void addAttachment(String name, Attachment attachment) {
		if(attachments == null)
			attachments = new HashMap<String, Attachment>(); 
		attachments.put(name, attachment);
	}
public void addAttachment(String name, Attachment attachment) {
		if(attachments == null)
			attachments = new HashMap<String, Attachment>(); 
		attachments.put(name, attachment);
	}
Adds an in-line document attachment.
@param name The attachment file name
@param attachment The attachment instance