String className = (String) fields[3];
int objectNumber = (Integer) fields[4];
String id = Utils.getObjectId(wikiName, spaceName, pageName, className, objectNumber);
String pageId = Utils.getPageId(wikiName, spaceName, pageName);
String pageFullName = Utils.getPageFullName(wikiName, spaceName, pageName);
<BUG>if (Utils.getXWikiApi(componentManager).hasAccessLevel("view", pageId)) {
Document doc = Utils.getXWikiApi(componentManager).getDocument(pageFullName);
</BUG>
String title = doc.getDisplayTitle();
SearchResult searchResult = objectFactory.createSearchResult();

String className = (String) fields[3];
int objectNumber = (Integer) fields[4];
String id = Utils.getObjectId(wikiName, spaceName, pageName, className, objectNumber);
String pageId = Utils.getPageId(wikiName, spaceName, pageName);
String pageFullName = Utils.getPageFullName(wikiName, spaceName, pageName);
if (xwikiApi.hasAccessLevel("view", pageId)) {
Document doc = xwikiApi.getDocument(pageFullName);
String title = doc.getDisplayTitle();
SearchResult searchResult = objectFactory.createSearchResult();
