code: public static String toplevelName(File file) {
          return Stream.of(file.getName().split("\\."))
                  .map(s -> Character.toUpperCase(s.charAt(0)) + s.substring(1))
                  .collect(Collectors.joining(""));
      }
docs: Form the name of the toplevel factory class.