code: private void writeChemSequence(IChemSequence cs) throws UnsupportedChemObjectException {
          int count = cs.getChemModelCount();
          for (int i = 0; i < count; i++) {
              writeln("frame: " + (i + 1));
              writeCrystal(cs.getChemModel(i).getCrystal());
          }
      }
docs: Private procedures