/*
  * (non-Javadoc)
  * @see eu.stratosphere.pact.common.stubs.Stub#open(eu.stratosphere.nephele.configuration.Configuration)
  */
 @Override
 public void open(final Configuration parameters) throws Exception {
   SopremoEnvironment.getInstance().setConfigurationAndContext(parameters, getRuntimeContext());
   this.context = SopremoEnvironment.getInstance().getEvaluationContext();
   this.collector = createCollector(SopremoEnvironment.getInstance().getLayout());
   this.cachedIterator1 = new RecordToJsonIterator<LeftElem>();
   this.cachedIterator2 = new RecordToJsonIterator<RightElem>();
   SopremoUtil.configureWithTransferredState(this, GenericSopremoCoGroup.class, parameters);
   this.leftArray.setNodeIterator(this.cachedIterator1);
   this.rightArray.setNodeIterator(this.cachedIterator2);
 }