public EntryChit next() throws TransactionException, IOException { synchronized (this) { if (theStatus == DECEASED) { if (theException != null) throw theException; else throw new TransactionException("No longer active"); } } SpaceEntryUID myUID; while ((myUID = theUIDs.pop()) != null) { EntryRepository myRepos = EntryRepositoryFactory.get().get(myUID.getType()); myRepos.find(theBuffer, myUID.getOID(), null); MangledEntry myEntry = theBuffer.getEntry(); if (myEntry != null) return new EntryChit(myEntry, myUID); } return null; }