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 .