boolean propertyValue ) throws RepositoryException {
QueryObjectModelFactory qomFactory = session.getWorkspace().getQueryManager().getQOMFactory();
ValueFactory valueFactory = session.getValueFactory();
Value propertyValueObj = valueFactory.createValue(propertyValue);
Selector selector = qomFactory.selector("notion:typed", "node");
Constraint constraint = null;
if (propertyName != null && operator != null) {
PropertyValue propValue = qomFactory.propertyValue("node", propertyName);
Literal literal = qomFactory.literal(propertyValueObj);
constraint = qomFactory.comparison(propValue, operator, literal);