public QueryManagerImpl(
final SessionContext sessionContext, final SearchManager searchMgr)
throws RepositoryException {
this.sessionContext = sessionContext;
this.searchMgr = searchMgr;
this.qomFactory = new QueryObjectModelFactoryImpl(sessionContext) {
protected QueryObjectModel createQuery(QueryObjectModelTree qomTree)
throws InvalidQueryException, RepositoryException {
return searchMgr.createQueryObjectModel(
sessionContext, qomTree, Query.JCR_JQOM, null);
}