checkIntegrity(context);
ProcessLauncher scriptLanucher = new DefaultProcessLauncher();
scriptLanucher.addCommand("which");
scriptLanucher.addCommand(getExecutableName());
Process process = scriptLanucher.exec();
String output = ProcessUtils.readOutput(process).trim();
int exitCode = process.exitValue();
if (exitCode != 0 || output.length() == 0) {
throw new ValidationException("Executable " + getExecutableName() + " was not found!");
}