private void saveMenuItemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_saveMenuItemActionPerformed
        // TODO add your handling code here:
        int returnVal = saveFileChooser.showSaveDialog(this);
        if (returnVal == JFileChooser.APPROVE_OPTION) {
            File file = saveFileChooser.getSelectedFile();
            String filename = file.getName();
            String filePath;
            if(!filename.contains("."))
            {
                filename = filename + ".stat";
                filePath = file.getPath() + ".stat";
            }
                
            else
            {
                filename = file.getName();
                filePath = file.getPath();
            }
//            System.out.println(file.toString());
            ProjectStore project = ProjectStore.getInstance();
            
            // if the project needs to be encrypted then save accordingly
            if (isEncrypted) {
                project.saveEncryptedProject(filePath, Stakeholders, filename, null, null, null, true, password);
            } else {
                project.saveProject(filePath, Stakeholders, filename, null, null, null, false);
            }
 
            saveMenuItemIsUsed = true;
        }
        
    }//GEN-LAST:event_saveMenuItemActionPerformed