EqualityExpression predicate = pf.createEqualityExpression();
predicate.setLeftExpr(createNameOrReference("name"));
predicate.setOpName("==");
predicate.setRightExpr(createNameOrReference("Luke"));
VirtualCollectQuery q = pf.createVirtualCollectQuery();
q.setExpr(predicate);
ce.setQuery(q);
// -- add some attributes
AttributeOperations aos = pf.createAttributeOperations();
aos.getAttributes().add(createAttributeDefinition("role", "jedi"));