public HippoQueryHandler getHippoQueryHandler(String workspaceName) throws RepositoryException { final SearchManager searchManager = ((HippoWorkspaceInfo) getWorkspaceInfo(workspaceName)).getSearchManager(); if (searchManager != null) { final QueryHandler queryHandler = searchManager.getQueryHandler(); if (queryHandler instanceof HippoQueryHandler) { return (HippoQueryHandler) queryHandler; } } return null; }
@Override protected void doDispose() { super.doDispose(); synchronized (this) { if (searchMgr != null) { searchMgr.close(); searchMgr = null; } } }