public static String getJmeterVersion() {
        String version = JMeterUtils.getJMeterVersion();

        int hyphenIndex = version.indexOf("-");
        int spaceIndex = version.indexOf(" ");

        return (hyphenIndex != -1 & spaceIndex == -1) ?
                version.substring(0, hyphenIndex) :
                version.substring(0, spaceIndex);
    }