class RelativeUriValidator implements ConstraintValidator<RelativeUri, URI> {

    @Override
    public boolean isValid(final URI value, final ConstraintValidatorContext context) {
        return value != null && !value.isAbsolute();
    }

}