See IntelligentEnsembleSimulation / both ensembles.
I believe the error is in KnowledgePathHelper.getAbsoluteStrippedPath - when resolving the PathNodeMapKey, the input parameter KnowledgePath path is accidentaly changed too (last two lines in the for cycle change the content of path. Problem is that path is passed by reference from ensemble membership/knowledge exchange parameters, therefore the ensemble membership/knowledge exchange parameters are accidentaly updated with the resolved version of knowledge path.
See IntelligentEnsembleSimulation / both ensembles. I believe the error is in KnowledgePathHelper.getAbsoluteStrippedPath - when resolving the PathNodeMapKey, the input parameter KnowledgePath path is accidentaly changed too (last two lines in the for cycle change the content of path. Problem is that path is passed by reference from ensemble membership/knowledge exchange parameters, therefore the ensemble membership/knowledge exchange parameters are accidentaly updated with the resolved version of knowledge path.