} else {
// db session is open - ensure not more than <MaxDocsPerDBSession> docs are indexed within this session to ensure gc of hibernate-entities
// @see Bugfix: B000037EA
if (docsWithinThisSession >= getMaxDocsPerDBSession()) {
db.reopenSession();
if (!db.isSessionOpen() && db.openSession() == WGDatabase.ACCESSLEVEL_NOTLOGGEDIN) {
_core.getLog().info(
"Indexer cannot access database '" + request.getDbkey() + "'. Indexing requests for content " + request.getDocumentKey()
+ " will be tried again later.");
info.requestReinserted();
// put request back in list and continue with next