public static void incrementProgress(int progress) {
        if (GlobalDialogs.progressDialogStatusBar != null) {
            if (progress > 100 || GlobalDialogs.progressDialogStatusBar.getValue() + progress > 100) {
                GlobalDialogs.progressDialogStatusBar.setValue(100);
            } else {
                GlobalDialogs.progressDialogStatusBar.setValue(GlobalDialogs.progressDialogStatusBar.getValue() + progress);
            }
        }
    }