code: @Override
      public void write(IChemObject object) throws UnsupportedChemObjectException {
          if (object instanceof ICrystal) {
              writeCrystal((ICrystal) object);
          } else if (object instanceof IChemSequence) {
              writeChemSequence((IChemSequence) object);
          } else {
              throw new UnsupportedChemObjectException("This object type is not supported.");
          }
      }
docs: Serializes the IChemObject to CrystClust format and redirects it to the output Writer.
  
  @param object A Molecule of MoleculeSet object