docs: private static String resolveJavaCommand(final Path javaHome) {
          final String exe;
          if (javaHome == null) {
              exe = "java";
          } else {
              exe = javaHome.resolve("bin").resolve("java").toString();
          }
          if (exe.contains(" ")) {
              return "\"" + exe + "\"";
          }
          return exe;
      }