code: private void addRestMessageAttributes(Message sqsMessage, JsonNode messageNode) {
          Iterator<String> it = messageNode.fieldNames();
          while(it.hasNext()) {
              String key = it.next();
              if (!key.equals(S3_OBJECT_KEY) && !key.equals(S3_BUCKET_NAME)) {
                  sqsMessage.addAttributesEntry(key, messageNode.get(key).textValue());
              }
          }
      }
docs: Excluding S3_BUCKET, S3_OBJECT_KEY, add all other attributes from the message body to <code>sqsMessage</code>.
  @param sqsMessage The SQS message.
  @param messageNode The message body.