class NotEmptyValidator implements ConstraintValidator<NotEmpty, String> {

	public boolean isValid(String object, ConstraintValidatorContext constraintValidatorContext) {
		if ( object == null ) {
			return true;
		}
		int length = object.length();
		return length > 0;
	}

}