DocumentImpl doc = (DocumentImpl) documents.remove(name); if (doc == null) { LOG.debug("could not remove document " + name); return;
DocumentImpl doc; for (Iterator i = documents.iterator(); i.hasNext();) { doc = (DocumentImpl) i.next(); if (doc.getFileName().equals(name)) { i.remove(); return; }
	public void removeDocument(String name) {		DocumentImpl doc = (DocumentImpl) documents.remove(name);		if (doc == null) {			LOG.debug("could not remove document " + name);			return;		}	}