public static boolean checkMongoShellPath(String mongoShellPath) throws ExecutionException {
if (isBlank(mongoShellPath)) {
return false;
}
GeneralCommandLine commandLine = new GeneralCommandLine();
commandLine.setExePath(mongoShellPath);
commandLine.addParameter("--version");
CapturingProcessHandler handler = new CapturingProcessHandler(commandLine.createProcess(), CharsetToolkit.getDefaultSystemCharset());
ProcessOutput result = handler.runProcess(15 * 1000);
return result.getExitCode() == 0;
}