core/src/main/java/com/opentext/ia/sdk/sip/Generator.java
public Metrics generate(Iterator<C> components, DataBuffer product) throws IOException {
    assembler.start(product);
    try {
      while (components.hasNext()) {
        assembler.add(components.next());
      }
    } finally {
      assembler.end();
    }
    return assembler.getMetrics();
  }
public Metrics generate(Iterator<C> components, DataBuffer product) throws IOException {
    assembler.start(product);
    try {
      while (components.hasNext()) {
        assembler.add(components.next());
      }
    } finally {
      assembler.end();
    }
    return assembler.getMetrics();
  }
Generate a product by assembling components.
@param components The components to assemble
@param product Storage for the assembled product
@return Metrics about the generation process
@throws IOException When an I/O error occurs