public static void checkChangesInTestPlan() {
        GuiPackage guiPackage = GuiPackage.getInstance();
        if (guiPackage.isDirty()) {
            int chosenOption = JOptionPane.showConfirmDialog(GuiPackage.getInstance().getMainFrame(),
                    "Do you want to save changes in current test-plan?",
                    JMeterUtils.getResString("save?"),
                    JOptionPane.YES_NO_CANCEL_OPTION, JOptionPane.QUESTION_MESSAGE);
            if (chosenOption == JOptionPane.YES_OPTION) {
                Save save = new Save();
                try {
                    save.doAction(new ActionEvent(guiPackage, ActionEvent.ACTION_PERFORMED, "save"));
                    GuiPackage.showInfoMessage("All changes are saved to " + guiPackage.getTestPlanFile(), "File is saved");
                } catch (IllegalUserActionException iuae) {
                    BmLog.error("Can not save file," + iuae);
                }
            }
        }
    }