EObject be = (EObject) Graphiti.getLinkService().getBusinessObjectForLinkedPictogramElement(pe);
if (be instanceof Participant){
composite.setEObject((BPMN2Editor) getDiagramEditor(), ((Participant) be).getProcessRef());
}else if (be instanceof BPMNDiagram){
try {
composite.setEObject((BPMN2Editor) getDiagramEditor(), ModelHandlerLocator.getModelHandler(be.eResource()).getInternalParticipant().getProcessRef());
} catch (IOException e) {
Activator.showErrorWithLogging(e);
}
}else
composite.setEObject((BPMN2Editor) getDiagramEditor(), be);