code: protected boolean destroy(String name) {
  		BeanLifecycleWrapper wrapper = this.cache.remove(name);
  		if (wrapper != null) {
  			Lock lock = this.locks.get(wrapper.getName()).writeLock();
  			lock.lock();
  			try {
  				wrapper.destroy();
  			}
  			finally {
  				lock.unlock();
  			}
  			this.errors.remove(name);
  			return true;
  		}
  		return false;
  	}
docs: Destroys the named bean (i.e. flushes it from the cache by default).
  @param name The bean name to flush.
  @return True if the bean was already cached; false otherwise.