final SearchManager searchMgr)
throws RepositoryException {
this.session = session;
this.itemMgr = itemMgr;
this.searchMgr = searchMgr;
this.qomFactory = new QueryObjectModelFactoryImpl(
session, session.getValueFactory()) {
protected QueryObjectModel createQuery(QueryObjectModelTree qomTree)
throws InvalidQueryException, RepositoryException {
return searchMgr.createQueryObjectModel(
session, qomTree, QueryImpl.JCR_SQL2);