// now check all publications and add their indexes:
PublicationManager pubManager = null;
SourceResolver resolver = null;
Source confSource = null;
ContextUtility util = null;
try {
util = (ContextUtility) this.manager.lookup(ContextUtility.ROLE);
Request request = util.getRequest();
DocumentFactory factory = DocumentUtil.getDocumentFactory(this.manager, request);
pubManager = (PublicationManager) this.manager.lookup(PublicationManager.ROLE);
Publication[] publications = pubManager.getPublications(factory);
resolver = (SourceResolver) this.manager.lookup(SourceResolver.ROLE);