docs: private LogRepositoryBrowser findNext(long cur, long timelimit) {
          File[] files = listFiles(instanceFilter);
          if (files == null) {
              return null;
          }
  
          File result = null;
          long min = Long.MAX_VALUE;
          for (File file : files) {
              long time = parseTimeStamp(file.getName());
              // Select directory with a smallest time stamp bigger than time stamp of the 'current'.
              if (cur < time && time < min) {
                  min = time;
                  result = file;
              }
          }
  
          // return 'null' if found directory has time stamp outside of the time limit.
          if (result == null || (timelimit > 0 && timelimit < min)) {
              return null;
          }
  
          return new LogRepositoryBrowserImpl(result, new String[] { result.getName() });
      }