code: public String getSelectPath(CmsVfsEntryBean vfsEntry) {
  
          String normalizedSiteRoot = CmsStringUtil.joinPaths(CmsCoreProvider.get().getSiteRoot(), "/");
          String rootPath = vfsEntry.getRootPath();
          if (rootPath.startsWith(normalizedSiteRoot)) {
              return rootPath.substring(normalizedSiteRoot.length() - 1);
          }
          return vfsEntry.getRootPath();
      }
docs: Gets the path which should be set as a value when a VFS entry is selected in the VFS tab.<p>
  
  @param vfsEntry the VFS entry which has been selected
  
  @return the selection path for the given VFS entry