code: function (stmts, attachmentMap) {
              var i,
                  j;
  
              for (i = 0; i < stmts.length; i += 1) {
                  if (stmts[i].hasOwnProperty("attachments") && stmts[i].attachments !== null) {
                      for (j = 0; j < stmts[i].attachments.length; j += 1) {
                          if (attachmentMap.hasOwnProperty(stmts[i].attachments[j].sha2)) {
                              stmts[i].attachments[j].content = attachmentMap[stmts[i].attachments[j].sha2];
                          }
                      }
                  }
              }
          }
docs: Assigns attachment content to the correct attachment to create a StatementsResult object that is sent
  to the callback of queryStatements()
  
  @method _assignAttachmentContent
  @private
  @param {Array} [stmts] Array of TinCan.Statement JSON objects
  @param {Object} [attachmentMap] Map of the content to place into its attachment
  @return {Array} Array of TinCan.Statement JSON objects with correctly assigned attachment content