docs: synchronized SmbTreeHandleImpl ensureTreeConnected () throws CIFSException {
          if ( this.treeHandle == null || !this.treeHandle.isConnected() ) {
              if ( this.treeHandle != null && this.transportContext.getConfig().isStrictResourceLifecycle() ) {
                  this.treeHandle.release();
              }
              this.treeHandle = this.treeConnection.connectWrapException(this.fileLocator);
              this.treeHandle.ensureDFSResolved();
              if ( this.transportContext.getConfig().isStrictResourceLifecycle() ) {
                  // one extra share to keep the tree alive
                  return this.treeHandle.acquire();
              }
              return this.treeHandle;
          }
          return this.treeHandle.acquire();
      }