final Number lowerNumber;
try {
if (lowerText.length == 0) { // open bound
lowerNumber = null;
} else {
final ReusableCharArrayReader lowerReader = new ReusableCharArrayReader(lowerText);
lowerNumber = parser.parse(lowerReader);
}
} catch (final Exception e) {
throw new QueryNodeParseException(new MessageImpl(QueryParserMessages.COULD_NOT_PARSE_NUMBER,
lowerText, parser.getNumericType() + " parser"), e);
}
final Number upperNumber;
try {
if (upperText.length == 0) { // open bound
upperNumber = null;
} else {
final ReusableCharArrayReader upperReader = new ReusableCharArrayReader(upperText);
upperNumber = parser.parse(upperReader);
}
} catch (final Exception e) {
throw new QueryNodeParseException(new MessageImpl(QueryParserMessages.COULD_NOT_PARSE_NUMBER,
upperText, parser.getNumericType() + " parser"), e);