CompositeBuild () { CompositeBuild result = new CompositeBuild(); result.myCompositeParticipants = new ArrayList<>(); for (BuildParticipant participant : myCompositeParticipants) { result.myCompositeParticipants.add(participant.copy()); } result.myCompositeDefinitionSource = myCompositeDefinitionSource; return result; }