if(currentId > maxTID) maxTID = currentId;
tid = ItemId.getId(currentId); if(tid > ItemId.MAX_ID) { LOG.debug(debugPageContents(this)); throw new RuntimeException("TID overflow in page " + getPageNum()); } if(tid > maxTID) maxTID = tid;
        public void cleanUp() {        	final int dlen = ph.getDataLength();        	short currentId, vlen;        	short maxTID = 0;        	for (int pos = 0; pos < dlen; ) {        		currentId = ByteConversion.byteToShort(data, pos);        		if(currentId > maxTID)        			maxTID = currentId;        		if (ItemId.isLink(currentId)) {        			pos += 10;        		} else {        			vlen = ByteConversion.byteToShort(data, pos + 2);        			if (ItemId.isRelocated(currentId)) {        				pos += vlen == OVERFLOW ? 20 : vlen + 12;        			} else        				pos += vlen == OVERFLOW ? 12 : vlen + 4;        		}        	}        	ph.setNextTID(maxTID);        }