class CheckInMemoryDataSourceTypeValidator implements ConstraintValidator<CheckInMemoryDataSourceType, ClientReferenceable>,
        ValidationErrorDescriptorBuilder {

    @Override
    public boolean isValid(ClientReferenceable value, ConstraintValidatorContext context) {
        return value == null || supportedDatasourceClazzAndNameMap.contains(value.getClass());
    }

}