in common/src/main/java/software/amazon/kms/common/KeyTranslator.java [156:165]
public Set<Tag> translateTagsToSdk(final Map<String, String> tags) {
if (tags == null) {
return Collections.emptySet();
}
return Optional.of(tags.entrySet()).orElse(Collections.emptySet())
.stream()
.map(tag -> Tag.builder().tagKey(tag.getKey()).tagValue(tag.getValue()).build())
.collect(Collectors.toSet());
}