HashMap lookup = classLookup; if (lookup == null) classLookup = lookup = new HashMap(4); HashMap classes = (HashMap) lookup.get(factory); if (classes == null) { classes = new HashMap(4); lookup.put(factory, classes);
synchronized (classLookupLock) {  Map lookup = classLookup; if (lookup == null) classLookup = lookup = new HashMap(4); HashMap classes = (HashMap) lookup.get(factory); if (classes == null) { classes = new HashMap(4); lookup.put(factory, classes); } classes.put(clazz.getName(), clazz);
	private void cacheClassLookup(IAdapterFactory factory, Class clazz) {		//cache reference to lookup to protect against concurrent flush		HashMap lookup = classLookup;		if (lookup == null)			classLookup = lookup = new HashMap(4);		HashMap classes = (HashMap) lookup.get(factory);		if (classes == null) {			classes = new HashMap(4);			lookup.put(factory, classes);		}		classes.put(clazz.getName(), clazz);	}