if(pname.indexOf('.') > 0) {
pquery = query;
// descend one time for each node in the pname (which may be a dot
// notated property path)
final PropertyPath path = new PropertyPath(pname);
for(final String node : path.nodes()) {
pquery = pquery.descend(node);
}
}
else {
pquery = query.descend(pname);