code: private void createDefaultConfigurationFile() throws IOException
      {
          
          File configFile = new File(configFilePath);
          
          if (configFile.exists()) {
              //seems a problem with access rights, report error
              throw new IOException();
          }
          else {
              //create the default file
              
              //create config dir if not exists yet
              File parentDir = configFile.getParentFile();
              if (!parentDir.exists())
                  parentDir.mkdirs();
              
              //create config file
              configFile.createNewFile();
              
              Properties config = new Properties();
              
              fillDefaultProperties(config);
              
              OutputStream fileOutput = new FileOutputStream(configFile);
              config.store(fileOutput, automaticFileMsg);
          }
          
      }
docs: Fills the configuration file (and creates it if doesn't exists) with
  the default configuration values.
  
  @throws java.io.IOException