+ attachmentMapping);
return attachmentMapping;
} else {
log.info("Found attachmend ids " + attachmentDocs.keySet());
// Replace this task with one that fetches attachments and then imports.
FetchAttachmentsAndImportWaveletTask newTask =
new FetchAttachmentsAndImportWaveletTaskGsonImpl();
newTask.setOriginalImportTask(task);
populateAttachmentInfo(newTask, documents, attachmentDocs);
if (newTask.getToImportSize() == 0) {
log.info("There are attachments but none can be imported");
return ImmutableMap.of();
}
ImportTaskPayload payload = new ImportTaskPayloadGsonImpl();
payload.setFetchAttachmentsTask(newTask);