code: public ThriftClient<T> getClient() throws ThriftException {
          try {
              return pool.borrowObject();
          } catch (Exception e) {
              if (e instanceof ThriftException) {
                  throw (ThriftException) e;
              }
              throw new ThriftException("Get client from pool failed.", e);
          }
      }
docs: get a client from pool
  
  @return
  @throws ThriftException
  @throws NoBackendServiceException if
  {@link PoolConfig#setFailover(boolean)} is set and no
  service can connect to
  @throws ConnectionFailException if
  {@link PoolConfig#setFailover(boolean)} not set and
  connection fail