code: private void remove(T resource) {
      try {
        mLock.lock();
        mResources.remove(resource);
      } finally {
        mLock.unlock();
      }
    }
docs: Removes an existing resource from the pool.
  
  @param resource