private void printDups(DuplicateHandler handler) {
   Map<String, List<IAtomContainer>> map = handler.getDupMap();
   int count = 0;
   for (String key : map.keySet()) {
     List<IAtomContainer> dups = map.get(key);
     if (dups.size() == 1) {
       System.out.println(count + "\t1\t" + AtomContainerPrinter.toString(dups.get(0)));
     } else {
       System.out.println(count + "\t" + dups.size());
     }
     count++;
   }
 }
 private void run(String elementFormula, String fromString, Handler handler) {
   AtomGenerator gen = new AtomGenerator(elementFormula, handler);
   gen.run(AtomContainerPrinter.fromString(fromString, builder));
 }