public synchronized void handleEvent(StreamEvent evt) {
		if("SourceLength".equals(evt.getEventName())) {
			Integer length = (Integer)evt.getEventObject();
			client.setContentLength(length.intValue());
		}
		if("SourceException".equals(evt.getEventName())) {
			client.handleException((Exception)evt.getEventObject());
			disconnect();
		}
		synchronized(this) {
			hasResponded = true;
			notifyAll();
		}
	}