code: public Object visit(QueryRootNode node, Object data) throws RepositoryException
     {
        BooleanQuery root = new BooleanQuery();
  
        Query wrapped = root;
        if (node.getLocationNode() != null)
        {
           wrapped = (Query)node.getLocationNode().accept(this, root);
        }
  
        return wrapped;
     }
docs: >-----------------------