class ImagesToImagesV4ResponseConverter extends AbstractConversionServiceAwareConverter<Images, ImagesV4Response> {

    @Override
    public ImagesV4Response convert(Images source) {
        ImagesV4Response res = new ImagesV4Response();
        List<BaseImageV4Response> baseImages = getBaseImageResponses(source);
        res.setBaseImages(baseImages);
        List<ImageV4Response> cdhImages = convertImages(source.getCdhImages(), StackType.CDH);
        res.setCdhImages(cdhImages);
        res.setSupportedVersions(source.getSuppertedVersions());
        return res;
    }

}