class ResourceReferencesValidator implements ConstraintValidator<ValidResourceReferences, Map<String, ClientReferenceableFile>>, ValidationErrorDescriptorBuilder {

    @Override
    public boolean isValid(Map<String, ClientReferenceableFile> value, ConstraintValidatorContext context) {
        return findInvalidReferences(value).isEmpty();
    }

}