in src/main/java/com/amazon/sqs/javamessaging/AmazonSQSExtendedClient.java [922:930]
private Optional<String> getReservedAttributeNameIfPresent(Map<String, MessageAttributeValue> msgAttributes) {
String reservedAttributeName = null;
if (msgAttributes.containsKey(SQSExtendedClientConstants.RESERVED_ATTRIBUTE_NAME)) {
reservedAttributeName = SQSExtendedClientConstants.RESERVED_ATTRIBUTE_NAME;
} else if (msgAttributes.containsKey(LEGACY_RESERVED_ATTRIBUTE_NAME)) {
reservedAttributeName = LEGACY_RESERVED_ATTRIBUTE_NAME;
}
return Optional.ofNullable(reservedAttributeName);
}