class ListS3 extends AbstractS3Processor {

    private Map<String, String> writeObjectTags(AmazonS3 client, S3VersionSummary versionSummary) {
        final GetObjectTaggingResult taggingResult = client.getObjectTagging(new GetObjectTaggingRequest(versionSummary.getBucketName(), versionSummary.getKey()));
        final Map<String, String> tagMap = new HashMap<>();

        if (taggingResult != null) {
            final List<Tag> tags = taggingResult.getTagSet();

            for (final Tag tag : tags) {
                tagMap.put("s3.tag." + tag.getKey(), tag.getValue());
            }
        }
        return tagMap;
    }

}