ReferenceInput ri = (ReferenceInput) coupledMi.inputs().get(idx);
if(!(ri.reference().module().equals(curMultiRefInput.reference().module())))
throw new IllegalStateException(" Reference can only be paired with another reference from the same module");
// We are selecting next avlue from the same module instance
InstanceOutput refIO = curModuleInstance.output(ri.reference().name());
nextValue = refIO.value();
//System.out.println("Assigning "+ri.reference().module().name()+"."+ri.reference().name()+" into "+name()+"."+coupledMi.name());
nextUniverse.put(coupledMi, new InstanceInput(this, coupledMi, nextValue, refIO));
}
}