for (com.xpn.xwiki.plugin.lucene.SearchResult luceneSearchResult : luceneResults) {
String wikiName = luceneSearchResult.getWiki();
String spaceName = luceneSearchResult.getSpace();
String pageName = luceneSearchResult.getName();
String pageId = Utils.getPageId(wikiName, spaceName, pageName);
<BUG>if (Utils.getXWikiApi(componentManager).hasAccessLevel("view", pageId)) {
String pageFullName = Utils.getPageFullName(wikiName, spaceName, pageName);
Document doc = Utils.getXWikiApi(componentManager).getDocument(pageFullName);
</BUG>
String title = doc.getDisplayTitle();

for (com.xpn.xwiki.plugin.lucene.SearchResult luceneSearchResult : luceneResults) {
String wikiName = luceneSearchResult.getWiki();
String spaceName = luceneSearchResult.getSpace();
String pageName = luceneSearchResult.getName();
String pageId = Utils.getPageId(wikiName, spaceName, pageName);
if (xwikiApi.hasAccessLevel("view", pageId)) {
String pageFullName = Utils.getPageFullName(wikiName, spaceName, pageName);
Document doc = xwikiApi.getDocument(pageFullName);
String title = doc.getDisplayTitle();
