class DefaultImageChecker implements DefaultResourceChecker {

    @Override
    public CrnsByCategory getDefaultResourceCrns(Collection<String> resourceCrns) {
        Map<Boolean, List<String>> byDefault = resourceCrns.stream().collect(Collectors.partitioningBy(this::isDefault));
        return CrnsByCategory.newBuilder()
                .defaultResourceCrns(byDefault.getOrDefault(true, List.of()))
                .notDefaultResourceCrns(byDefault.getOrDefault(false, List.of()))
                .build();
    }

    @Inject public  DefaultImageChecker(ImageCatalogService imageCatalogService);

}