code: public static IAtomContainerSet getAllProducts(IReaction reaction) {
          IAtomContainerSet moleculeSet = reaction.getBuilder().newInstance(IAtomContainerSet.class);
          IAtomContainerSet products = reaction.getProducts();
          for (int i = 0; i < products.getAtomContainerCount(); i++) {
              moleculeSet.addAtomContainer(products.getAtomContainer(i));
          }
          return moleculeSet;
      }
docs: get all products of a IReaction
  
  @param reaction  The IReaction
  @return The IAtomContainerSet