public boolean renameDocument(String oldName, String newName) { DocumentImpl doc = getDocument(oldName); if (doc == null) { LOG.debug("document " + oldName + " not found"); return false;
public void renameDocument(String oldName, String newName) { DocumentImpl doc; for (Iterator i = documents.iterator(); i.hasNext();) { doc = (DocumentImpl) i.next(); if (doc.getFileName().equals(oldName)) { doc.setFileName(newName); return; }
	public boolean renameDocument(String oldName, String newName) {		DocumentImpl doc = getDocument(oldName);		if (doc == null) {			LOG.debug("document " + oldName + " not found");			return false;		}		doc.setFileName(newName);		documents.remove(oldName);		documents.put(newName, doc);		return true;	}