public void setAttachments(Map<String, com.cloudant.client.api.model.Attachment> attachments) {
   Map<String, Attachment> lightCouchAttachments = new HashMap<String, Attachment>();
   Iterator<String> iterator = attachments.keySet().iterator();
   while (iterator.hasNext()) {
     String key = (String) iterator.next();
     com.cloudant.client.api.model.Attachment attachment = attachments.get(key);
     Attachment lightCouchAttachment = attachment.getAttachement();
     lightCouchAttachments.put(key, lightCouchAttachment);
   }
   replicatorDocument.setAttachments(lightCouchAttachments);
 }
 public void addAttachment(String name, com.cloudant.client.api.model.Attachment attachment) {
   replicatorDocument.addAttachment(name, attachment.getAttachement());
 }