* cannot be parsed
*/
public static String checkExpression(String expression) {
Preconditions.checkNotNull(expression, "expression cannot be null");
try {
new ExpressionTreeBuilder().parse(expression);
} catch (RecognitionException e) {
throw new IllegalArgumentException("Unable to parse expression: " + expression);
}
return expression;
}