class JavaExecuteScript {

    public static ExecutionOutput executeCommand(String cmd, String arg, long timeoutScanDelay) throws JavaExecuteScriptException {
        String scriptPath;
        try {
            scriptPath = PropertiesUtils.findFile(cmd).getPath();
        } catch (final FileNotFoundException e) {
            LOGGER.error(cmd + " does not exit");
            throw new JavaExecuteScriptException(e);
        }
        return exec(scriptPath, arg, timeoutScanDelay);
    }

}