long modified = next.getLastModified();
long modified = next.getMetadata().getLastModified();
	public void cleanUp() {		Collection temp = getCollection(TEMP_COLLECTION);		if(temp == null)			return;        TransactionManager transact = pool.getTransactionManager();        Txn txn = transact.beginTransaction();        try {            long now = System.currentTimeMillis();            for(Iterator i = temp.iterator(this); i.hasNext(); ) {            	DocumentImpl next = (DocumentImpl) i.next();            	long modified = next.getLastModified();            	if(now - modified > TEMP_FRAGMENT_TIMEOUT)            		try {            			temp.removeDocument(txn, this, next.getFileName());            		} catch (PermissionDeniedException e) {            			LOG.warn("Failed to remove temporary fragment: " + e.getMessage(), e);            		} catch (TriggerException e) {            			LOG.warn("Failed to remove temporary fragment: " + e.getMessage(), e);            		} catch (LockException e) {            			LOG.warn("Failed to remove temporary fragment: " + e.getMessage(), e);            		}            }            transact.commit(txn);        } catch (TransactionException e) {            transact.abort(txn);            LOG.warn("Transaction aborted: " + e.getMessage(), e);        }	}