long start = System.currentTimeMillis();
if (ChainBuilderAgent.DEBUG) { start = System.currentTimeMillis(); }
	public synchronized Collection getChains() {				Collection res = null;		// if we're done, go for it.		if (chainHash != null && chainHash.size() > 0) {			res = chainHash.values();		}		else {			if (gettingChains == false) {				long start = System.currentTimeMillis();				gettingChains = true;				retrieveChains();				gettingChains = false;				notifyAll();				long end = System.currentTimeMillis()-start;				System.err.println("time for retrieving chains.. "+end);				res = chainHash.values();			}			else {// in progress				try{ 					wait();					res = chainHash.values();				}				catch (InterruptedException e) {					res = null;				}			}		}		return res;	}