code: public void cache(String identifier, Object resource) {
  		verifyState();
  
  		if (!cacheLocked.get()) {
  			resourceCache.get().put(identifier, resource);
  		}
  	}
docs: Adds resource to cache.
  @param identifier resource identifier
  @param resource resource
  @throws IllegalStateException in case <code>init()</code> was not called