DocumentImpl doc; for (Iterator i = documents.iterator(); i.hasNext();) { doc = (DocumentImpl) i.next(); if (doc.getFileName().equals(name)) return doc; } return null;
return (DocumentImpl) documents.get(name);
	public DocumentImpl getDocument(String name) {		//return (DocumentImpl) documents.get(name);		//return null;		DocumentImpl doc;		for (Iterator i = documents.iterator(); i.hasNext();) {			doc = (DocumentImpl) i.next();			if (doc.getFileName().equals(name))				return doc;		}		return null;	}