for (int i = 0; i < paths.size(); i++) {
if (values.get(i) != null) {
metadata.addProjection(ExpressionUtils.eqConst(((Expression)paths.get(i)), values.get(i)));
} else {
metadata.addProjection(ExpressionUtils.eq(((Expression)paths.get(i)),
new NullExpression(paths.get(i).getType())));
}
}
return this;
}