}
return collaboration;
}
private void addCollaborationToRootElements(final List<RootElement> rootElements, final Collaboration collaboration) {
Participant participant = FACTORY.createParticipant();
// participant.setId(EcoreUtil.generateUUID());
ModelUtil.setID(participant,resource);
participant.setName("Internal");
for (RootElement element : rootElements) {
if (element instanceof Process) {
participant.setProcessRef((Process) element);
break;
}
}
collaboration.getParticipants().add(participant);
rootElements.add(collaboration);