public void analyzeGedcom(File gedcomFile) {
      warnings = new HashSet<String>();
      errors = new HashSet<String>();
      this.file = gedcomFile;

      try {
         parser.parseGedcom(gedcomFile);
         if (warnings.size() > 0 || errors.size() > 0) {
            cntWarnings++;
         }
         if (errors.size() > 0) {
            cntErrors++;
         }
         for (String warning : warnings) {
            ccWarnings.add(warning);
         }
         for (String error : errors) {
            ccErrors.add(error);
         }
      } catch (SAXParseException e) {
         logger.error("SaxParseException for file: "+file.getName()+" "+e.getMessage()+" @ "+e.getLineNumber());
      } catch (IOException e) {
         logger.error("IOException for file: " + file.getName() + " " + e.getMessage());
      } catch (RuntimeException e) {
         e.printStackTrace();
         logger.error("Exception for file: "+file.getName()+" "+e.getMessage());
      }
   }