private void populateAttachmentInfo(FetchAttachmentsAndImportWaveletTask newTask,
List<GoogleDocument> documentList, Map<String, GoogleDocument> attachmentDocs) {
for (Map.Entry<String, GoogleDocument> entry : attachmentDocs.entrySet()) {
String attachmentId = entry.getKey();
GoogleDocumentContent metadataDoc = entry.getValue().getContent();
log.info("metadataDoc=" + metadataDoc);
Map<String, String> map = makeMapFromDocument(metadataDoc, "node", "key", "value");
log.info("Attachment metadata for " + attachmentId + ": " + map + ")");
RemoteAttachmentInfo info = new RemoteAttachmentInfoGsonImpl();
info.setRemoteId(attachmentId);