code: @Override
      public void replaceAtomContainer(int position, IAtomContainer container) {
          IAtomContainer old = atomContainers[position];
          old.removeListener(this);
          atomContainers[position] = container;
          container.addListener(this);
          notifyChanged();
      }
docs: Replace the AtomContainer at a specific position (array has to be large enough).
  
  @param position   position in array for AtomContainer
  @param container  the replacement AtomContainer