code: public void addModeForPattern(String pattern, Integer mode) {
          System.out.println(String.format("*** Recording pattern \"%s\" with mode %o", pattern, mode));
          patternToModeMap.put(pattern, mode);
      }
docs: Add a new mode for a specific file pattern.
  @param pattern the pattern to be matched
  @param mode the POSIX file mode for matching filenames