private void doGetOperatorSpecs(OperatorSpec operatorSpec, Set<OperatorSpec> specs) {
    Collection<OperatorSpec> registeredOperatorSpecs = operatorSpec.getRegisteredOperatorSpecs();
    for (OperatorSpec registeredOperatorSpec : registeredOperatorSpecs) {
      specs.add(registeredOperatorSpec);
      doGetOperatorSpecs(registeredOperatorSpec, specs);
    }
  }
Returns a deserialized {@link OperatorSpecGraph} as a copy from this instance of {@link OperatorSpecGraph}
This is used to create per-task instance of {@link OperatorSpecGraph} when instantiating task instances.

@return a copy of this {@link OperatorSpecGraph} object via deserialization
samza-core/src/main/java/org/apache/samza/operators/OperatorSpecGraph.java