code: public void writeAtomContainerSet(IAtomContainerSet som) {
          writeAtomContainer(som.getAtomContainer(0));
          for (int i = 1; i <= som.getAtomContainerCount() - 1; i++) {
              try {
                  writeAtomContainer(som.getAtomContainer(i));
              } catch (Exception exc) {
              }
          }
      }
docs: Writes a list of molecules to an OutputStream.
  
  @param   som  MoleculeSet that is written to an OutputStream