query.withVersion(Resource.LIVE);
query.withTypes(ImageResource.TYPE);
query.withSubjects(SearchQuery.Quantifier.All, imageSubjects.toArray(new String[imageSubjects.size()]));
SearchResult result;
try {
result = repository.find(query);
} catch (ContentRepositoryException e) {
logger.warn("Error searching for image with given subjects ({}): {}", StringUtils.join(imageSubjects, ", "), e.getMessage());
return SKIP_BODY;
}
if (result.getHitCount() > 1)