}
Object valueToCompare;
try {
valueToCompare = BeanUtil.getDeclaredProperty(target, fieldName);
} catch (BeanException bex) {
throw new VtorException("Invalid value: " + fieldName, bex);
}
if (valueToCompare == null) {
return false;
}
return value.equals(valueToCompare);