docs: private File searchDirectory(File tempHome, String subDirPath) {
          // 
          String[] subDirs = StringUtils.split(subDirPath, "/");
          for (final String subDir : subDirs) {
              File file = new File(tempHome, subDir);
              if (!file.exists()) {
                  String[] candidates = tempHome.list(new FilenameFilter() {
  
                      @Override
                      public boolean accept(File dir, String name) {
                          if (name.equalsIgnoreCase(subDir)) {
                              return true;
                          }
                          return false;
                      }
  
                  });
                  if (candidates.length == 0) {
                      tempHome = null;
                      break;
                  } else {
                      tempHome = new File(tempHome, candidates[0]);
                  }
              } else {
                  tempHome = file;
              }
          }
          return tempHome;
      }