code: void insertOutputGate(final int pos, final ExecutionGate outputGate) {
  
  		if (this.outputGates[pos] != null) {
  			throw new IllegalStateException("Output gate at position " + pos + " is not null");
  		}
  
  		this.outputGates[pos] = outputGate;
  	}
docs: Inserts the output gate at the given position.
  
  @param pos
  the position to insert the output gate
  @param outputGate
  the output gate to be inserted