class AwsTaggingService {

    public Collection<com.amazonaws.services.cloudformation.model.Tag> prepareCloudformationTags(AuthenticatedContext ac, Map<String, String> userDefinedTags) {
        Collection<com.amazonaws.services.cloudformation.model.Tag> tags = new ArrayList<>();
        tags.addAll(userDefinedTags.entrySet().stream()
                .map(entry -> prepareCloudformationTag(entry.getKey(), entry.getValue()))
                .collect(Collectors.toList()));
        return tags;
    }

}