public void run() {
			SolrInputDocument theDoc = null;
			while (isRunning) {
				synchronized(documents) {
					if (documents.isEmpty()) {
						try {
							documents.wait();
						} catch (Exception e) {}
					}
					if (isRunning && !documents.isEmpty()) {
						theDoc = documents.remove(0);
					}
				}
				if (isRunning && theDoc != null) {
					acceptDocument(theDoc);
					theDoc = null;
				}
			}
		}