class VersionBasedImageFilter {

    public ImageFilterResult getCdhImagesForCbVersion(Versions versions, List<Image> availableImages) {
        Set<String> imageIds = getImageIds(versions);
        LOGGER.debug("{} image id(s) found for Cloudbreak version: {}", imageIds.size(), cbVersion);
        String message = String.format("%d image id(s) found for Cloudbreak version: %s", imageIds.size(), cbVersion);
        List<Image> images = availableImages.stream()
                .filter(image -> imageIds.contains(image.getUuid()))
                .collect(Collectors.toList());
        return new ImageFilterResult(new Images(null, images, null), message);
    }

}