code: public void clear() {
  		verifyState();
  
  		initDepth.set(initDepth.get() - 1);
  		if (initDepth.get() == 0) {
  			resourceCache.set(null);
  			cacheLocked.set(null);
  			initDepth.set(null);
  		}
  	}
docs: Clears current thread scope state.
  @throws IllegalStateException in case <code>init()</code> was not called