public static void checkJMeterVersion() {

        String[] currentVersion = StringUtils.split(Utils.getJmeterVersion(), ".");
        String[] baseVersion = StringUtils.split("2.5", ".");
        if (currentVersion[0].equals(baseVersion[0])) {
            if (Integer.valueOf(currentVersion[1]) < Integer.valueOf(baseVersion[1])) {
                if (JMeter.isNonGUI()) {
                    BmLog.error("Blazemeter Listener won't work with " + Utils.getJmeterVersion() + " version of JMeter. Please, update Jmeter to 2.5 or later.");
                } else {
                    JMeterUtils.reportErrorToUser("Blazemeter Listener won't work with " + Utils.getJmeterVersion() + " version of JMeter. Please, update Jmeter to 2.5 or later.",
                            "Invalid JMeter version");
                }
            }
        }
    }