String lowerBound = p.getLowerBound();
String upperBound = p.getUpperBound();
if (lowerBound == null && upperBound == null) {
// ignore
} else {
CoreValueFactory vf = query.getValueFactory();
if (lowerBound != null) {
operand1.apply(f, Operator.GREATER_OR_EQUAL, vf.createValue(lowerBound));
}
if (upperBound != null) {
operand1.apply(f, Operator.LESS_OR_EQUAL, vf.createValue(upperBound));
}
}
} else {
operand1.apply(f, operator, v);
}