private boolean saveFile(String name){
        boolean saveSuccessful = false;
        // Only save if there's a valid file name
        if(name != null && !name.trim().isEmpty()){
            // Clean the name from any path that might have been provided by the user
            name = FileUtils.getTextWithoutPath(name);
            // Add the original path to the file
            String path = FileUtils.getPathFromText(sphinxPropertyFileName);
            if(path != null && !path.trim().isEmpty()){
                name = path + name;
            }
            // If the name does not have the correct suffix then add it
            if(!name.endsWith(SphinxConfigurationSuffix)){
                name += SphinxConfigurationSuffix;
            }
            // Save the file
            try{
                FileUtils.saveToFile(new File(name), sphinxPropertyPane.getText());
                saveSuccessful = true;
                // Update the name of the SphinxPropertyFileName
                sphinxPropertyFileName = name;
            }catch(IOException ex){
                JOptionPane.showMessageDialog(null, ex.getMessage(), "Sphinx Configuration Error", JOptionPane.ERROR_MESSAGE);
            }
        }
        return saveSuccessful;
    }