class ImageCatalogService extends AbstractWorkspaceAwareResourceService<ImageCatalog> implements ResourceBasedCrnProvider {

    public ImageCatalog get(NameOrCrn imageCatalogNameOrCrn, Long workspaceId) {
        return imageCatalogNameOrCrn.hasName()
                ? get(workspaceId, imageCatalogNameOrCrn.getName())
                : findByResourceCrn(imageCatalogNameOrCrn.getCrn());
    }

}