
if (el instanceof ObjectArrayElement) {
elem = (ObjectArrayElement) el;</BUG>
ev = QueryEvaluator.getInstance(expr.getElemMatch(), elem);
<BUG>} else {
throw new EvaluationError(expr, CrudConstants.ERR_EXPECTED_OBJECT_ARRAY + field);
}</BUG>
} else {
throw new EvaluationError(expr, CrudConstants.ERR_EXPECTED_ARRAY + field);
}

FieldTreeNode node = context.resolve(field);
if (node == null) {
throw new EvaluationError(expr);
}
if (node instanceof ArrayField) {
elem = ((ArrayField) node).getElement();
ev = QueryEvaluator.getInstance(expr.getElemMatch(), elem);
} else {
throw new EvaluationError(expr, CrudConstants.ERR_EXPECTED_ARRAY + field);
