/** Get the last databaseId seen by the reader. */
 public DatabaseId getDatabaseId() {
   if (lastEntryWasDelete) {
     return ((INDeleteInfo) targetLogEntry.getMainItem()).getDatabaseId();
   } else if (lastEntryWasDupDelete) {
     return ((INDupDeleteInfo) targetLogEntry.getMainItem()).getDatabaseId();
   } else {
     return ((INContainingEntry) targetLogEntry).getDbId();
   }
 }
 /** Get the deleted main key stored in the last delete info log entry. */
 public byte[] getDupDeletedDupKey() {
   return ((INDupDeleteInfo) targetLogEntry.getMainItem()).getDeletedDupKey();
 }
 /** Get the deleted node id stored in the last delete info log entry. */
 public long getDupDeletedNodeId() {
   return ((INDupDeleteInfo) targetLogEntry.getMainItem()).getDeletedNodeId();
 }