class ImageCatalogToImageCatalogV4ResponseConverter extends AbstractConversionServiceAwareConverter<ImageCatalog, ImageCatalogV4Response> {

    @Override
    public ImageCatalogV4Response convert(ImageCatalog source) {
        ImageCatalogV4Response imageCatalogResponse = new ImageCatalogV4Response();
        imageCatalogResponse.setUrl(source.getImageCatalogUrl());

        String imageCatalogName = source.getName();
        imageCatalogResponse.setUsedAsDefault(isDefault(imageCatalogName));
        imageCatalogResponse.setName(imageCatalogName);
        imageCatalogResponse.setDescription(source.getDescription());
        imageCatalogResponse.setCreator(source.getCreator());
        imageCatalogResponse.setCreated(source.getCreated());
        imageCatalogResponse.setCrn(source.getResourceCrn());

        return imageCatalogResponse;
    }

}