if (castedValue != null) {
return new Comparison(name, operator, castedValue);
} else if (MessageUtils.isTrue(contextProperties.get(SearchUtils.LAX_PROPERTY_MATCH))) {
return null;
} else {
throw new PropertyNotFoundException(name, value);
}
} else {
throw new SearchParseException("Not a comparison expression: " + expr);
}
}