* A literal. A string that can be converted to a double.
* @return filter
*/
public Filter createCompareFilter(String name, String comparator, Date value) {
PropertyName attrib = FF.property(name);
Expression val = FF.literal(value);
if ("<".equals(comparator)) {
return FF.less(attrib, val);
} else if (">".equals(comparator)) {
return FF.greater(attrib, val);
} else if (">=".equals(comparator)) {