RepositoryException {
if (LOGGER.isLoggable(Level.FINER)) {
LOGGER.finer("RETRIEVER: Retrieving content from connector "
+ connectorName + " for document " + docid);
}
Retriever retriever = instantiator.getRetriever(connectorName);
if (retriever == null) {
// We are borked here. This should not happen.
LOGGER.warning("GetDocumentContent request for connector " + connectorName
+ " that does not support the Retriever interface.");
return null;
}
InputStream in = retriever.getContent(docid);
if (in == null) {
LOGGER.finer("RETRIEVER: Document has no content.");
}
// The GSA can't handle meta-and-url feeds with no content, so we
// provide some minimal content of a single space, if none is available.