Class clazz = null;  HashMap lookup = classLookup; if (lookup != null) { HashMap classes = (HashMap) lookup.get(factory); if (classes != null) { clazz = (Class) classes.get(typeName);
synchronized (classLookupLock) { Class clazz = null;  Map lookup = classLookup; if (lookup != null) { HashMap classes = (HashMap) lookup.get(factory); if (classes != null) { clazz = (Class) classes.get(typeName); }
	private Class cachedClassForName(IAdapterFactory factory, String typeName) {		Class clazz = null;		//cache reference to lookup to protect against concurrent flush		HashMap lookup = classLookup;		if (lookup != null) {			HashMap classes = (HashMap) lookup.get(factory);			if (classes != null) {				clazz = (Class) classes.get(typeName);			}		}		return clazz;	}